support card content migrations
Ticket
+status
+priority
+tag
+commit
+issues
we've been using the rail db migration tool to do content migrations, which regularly gets us into trouble. In short the problem is that
- it's very hard to do anything sophisticated without using the card models.
- as soon as you start using any models, you create a situation where new structure migrations will break old content migrations. (bc the code always expects the db to be in the latest state)
This is why we've had to ask people to do many hops to get old wagns migrated forward.
+solution
The migration pattern we need is pretty clear:
- run all structural migrations, THEN
- run all content migrations
So we need to separate the two out. The API will look something like:
- rake db:migrate (run structural migrations)
- rake wagn:migrate_cards (run content migrations)
- rake wagn:migrate (run both of the above in order)