Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails create database only in test

bundle exec rails db:drop RAILS_ENV=test
bundle exec rails db:create RAILS_ENV=test
bundle exec rails db:schema:load RAILS_ENV=test
 
PREVIOUS NEXT
Tagged: #rails #create #database #test
ADD COMMENT
Topic
Name
3+6 =