This commit fixes the following error in Rails 5.0.
$ bundle exec rspec spec # DatabaseRewinder deletes the internal metadata table
------
DELETE FROM `ar_internal_metadata`;
------
$ RAILS_ENV=test bundle exec rake db:migrate reset
rake aborted!
ActiveRecord::NoEnvironmentInSchemaError:
Environment data not found in the schema. To resolve this issue, run:
bin/rails db:environment:set RAILS_ENV=test
Tasks: TOP => db:migrate:reset => db:drop => db:check_protected_environments
(See full trace by running task with --trace)
This commit fixes the following error in Rails 5.0.