June 2011
1 post
3 tags
Migrating and populating STI models
I just spent quite some time on a “bug” in one of my migrations. Run after run, it failed to populate the database properly. Even after adding the obligatory MyModel.reset_column_information But after checking the database carefully, I realized that some rows had the intended data, while others didn’t. Long story short: Don’t forget to reset the column information on...
Jun 6th
8 notes