4 ms·
best phpmyadmin alternative: terminal
by suhail 17y ago
best phpmyadmin alternative: terminal
- patio11 17y agoI'm ashamed to say I do an awful lot of administration from the Rails console. "Oops, I botched my email address, can you help me?" c = Customer.find_by_username "wrong@example.com" c.username = "right@example.com" c.save! I know, I know, I could do it with SQL but I have noted a remarkable ability at the day job to forget to include the where clause after a week of crunch. That can have remarkably negative consequences, particularly since the Rails DB doesn't have any particular constraints on it. (It has ActiveRecord validations and, beyond that, you typically have to type more stuff, rather than less stuff, to cause massive screwups.)