4 ms·
A very quick Google search for "rails rename column" will show that there's a method called "rename_column" You can even search for "rails typo in migration" a
by prophetjohn 11y ago
A very quick Google search for "rails rename column" will show that there's a method called "rename_column"
You can even search for "rails typo in migration" and the first result is a stack overflow post suggesting and explaining how to roll back the migration so you can edit it
- pbreit 11y agoI did a lot of Googling and tried a few things and still seemed to find it easier to start over.
- amalag 11y agoI can see a lot of faults in Rails, but this critcism is silly. The documentation is excellent at that level. http://edgeguides.rubyonrails.org/active_record_migrations.html http://edgeguides.rubyonrails.org/active_record_migrations.h...
- testerbot 11y agoI understand having gripes with rails but this is a bit ridiculous. Deleting an entire project because you made an error creating a table and weren't able to sort out how to fix it? That's a little extreme, surely this must be hyperbole.
- rosser 11y agoAnd this sort of thing is exactly why there was a satire site article titled "Computer Programming to be Officially Renamed 'Googling Stackoverflow'" the other day.