You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using kicker 3 with rails 4.1, but I'm seeing the following error whenever my schema file changes:
Kicker: rake db:test:prepare
WARNING: db:test:prepare is deprecated. The Rails test helper now maintains your test schema automatically, see the release notes for details.
I suspect the rails recipe is running db:test:prepare when the schema file changes.
The text was updated successfully, but these errors were encountered:
I don't agree with Rails' decision to drop this task. They now ‘maintain’ the schema for you with ActiveRecord::Migration.maintain_test_schema!. This doesn't support switching branches with different sets of migrations because it only reloads the schema when there are pending migrations (e.g. not when the branch is missing migrations compared to the last one).
Not all test frameworks have explicit support for this so they will start failing if we don't load the schema.
Kicker should work with older Rails versions.
A nice solution could be to change this to run rake db:schema:load RAILS_ENV=test, which I think solves most issues.
I'm using kicker 3 with rails 4.1, but I'm seeing the following error whenever my schema file changes:
I suspect the rails recipe is running
db:test:prepare
when the schema file changes.The text was updated successfully, but these errors were encountered: