framgia / stirling

MIT License
4 stars 6 forks source link

Deprecated rake db:test:prepare #16

Open yeuem1vannam opened 9 years ago

yeuem1vannam commented 9 years ago

The rake task db:test:prepare is deprecated. https://github.com/framgia/stirling/blob/master/lib/tasks/recreate_db.rake#L4 Instead, we can insert

ActiveRecord::Migration.maintain_test_schema!

to spec_helper.rb if the PJ using RSPEC

kouyaf77 commented 9 years ago

ActiveRecord::Migration.maintain_test_schema! will be inserted in spec_helper automatically, if you use rpsec-rails and excute rails g rspec:install. but it depends on user. Is it better to fix? How do you think?