4 ms·
Only using direct SQL works, but I've always relied on redefined model classes IN the migration, a la: http://railsguides.net/change-data-in-migrations-like-a-
by ad-hominem 11y ago
Only using direct SQL works, but I've always relied on redefined model classes IN the migration, a la:
http://railsguides.net/change-data-in-migrations-like-a-boss/ http://railsguides.net/change-data-in-migrations-like-a-boss...
Written about 20 rails apps of varying levels of complexity, never been bitten by this approach. YMMV