On Rails - 5.0.3 and Ruby - 2.3.3, when I run rails test
, it keeps asking me to run migrations. It does not maintain migrations state.
Tried following -
Adding ActiveRecord::Migration.maintain_test_schema!
in test_helper.rb
as mentioned here.
Can someone please help? Its really annoying and slow to run migrations everytime I run test.
UPDATE After debugging a lot. Figured that rails/test_help is creating the issue. If I comment it out, it works fine. Why is it that creating issue?