diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2017-12-08 13:42:01 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2017-12-08 14:50:27 -0800 |
commit | a50b8ea3503f5642330c1e6b94320115796b4bab (patch) | |
tree | 1fab4db91d54af009c513f2958d90e0d03e797cf /activestorage/test/database/create_users_migration.rb | |
parent | cd0283ef29eaa4a8eb9c90d6c2efaccb20012a20 (diff) | |
download | rails-a50b8ea3503f5642330c1e6b94320115796b4bab.tar.gz rails-a50b8ea3503f5642330c1e6b94320115796b4bab.tar.bz2 rails-a50b8ea3503f5642330c1e6b94320115796b4bab.zip |
Set the Rails environment from an environment variable
Option parsing happens too late to have any impact on the Rails
environment. Rails accesses the environment name and memoizes it too
early in the boot process for a commandline option to have any impact on
the database connection, so we'll change this test to set the
environment from an environment variable (and ensure it still works when
running tests with `ruby`)
Diffstat (limited to 'activestorage/test/database/create_users_migration.rb')
0 files changed, 0 insertions, 0 deletions