Skip to content

Instantly share code, notes, and snippets.

@marcdel
Created March 25, 2013 06:10
Show Gist options
  • Save marcdel/5235204 to your computer and use it in GitHub Desktop.
Save marcdel/5235204 to your computer and use it in GitHub Desktop.
why are all these different whyyyyyyy
# Enter console in test environment
$ rails console test
Loading test environment
>> Rails.env
=> "test"
>> Rails.env.test?
=> true
# Start the server in test environment
$ rails server --environment test
# Run rake tasks in test environment
$ bundle exec rake db:migrate RAILS_ENV=test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment