I'm using Rails 4.1.4. Whenever I run new migrations, my tests fail, because the migration is apparently not applied to the test database. In the past, I had to run the db:test:prepare
rake task, but that now says it's deprecated (though it still works).
My question is, what do I have to do, so the test schema is maintained automatically, as the deprecation message now falsely claims?
Some additional info that might be relevant:
- I started developing my app on Rails 3.x, then upgraded to 4.x. Maybe this problem does not occur in clean 4.x installs?
- I'm using the
:sql
schema format (config.active_record.schema_format = :sql
), because I need some db features not supported by the:ruby
format. Maybe the automatic test migrations work only with the:ruby
format?