[RUBY] rails test db only drop

Since the test result is different between circle ci and the local environment, I tried migrating after dropping the db for test just in case


rake db:drop RAILS_ENV=test
rake db:create RAILS_ENV=test
rake db:schema:load RAILS_ENV=test

Reference article

Rails 4: How to reset test database?

Recommended Posts

rails test db only drop
Rails tutorial test
[Rails] Store only checked items in DB
rails db: 〇〇 Summary
Test run on rails
rails db: migrate failed!
[Rails] rails db command summary
[Rails] Test with RSpec
Error in rails db: migrate
# What to do if you accidentally do rails db: migrate: drop
[Rails] Test code using Rspec
[Rails] About Rspec response test
Docker test DB does not start
[rails] How to display db information
[Personal note] Rails DB index consideration
[Rails] DB design for EC site
[Rails5] Rspec -Unit test when nesting-
Rails DB PostgreSQL changed to MySQL
[Rails] Modify migrate file (rails db: rollback)
[Rails] Reflection to db using seeds.rb
Let's unit test with [rails] Rspec!