You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use .env file to pass postgres url into my apps.
Using this approach, I cannot migrate test environment db using standalone-migrations.
When DATABASE_URL is set in environment, gem ignores existing configuration when other env is specified: rake db:drop db:create db:migrate RAILS_ENV=testing (where testing refers to valid config.yml)
takes whatever is stored in DATABASE_URL and creates the database. It does it in the specified (testing) mode so that dropping the database with rake db:drop produces ActiveRecord::EnvironmentMismatchError.
The text was updated successfully, but these errors were encountered:
I use .env file to pass postgres url into my apps.
Using this approach, I cannot migrate test environment db using
standalone-migrations
.When
DATABASE_URL
is set in environment, gem ignores existing configuration when other env is specified:rake db:drop db:create db:migrate RAILS_ENV=testing
(where testing refers to valid config.yml)takes whatever is stored in DATABASE_URL and creates the database. It does it in the specified (
testing
) mode so that dropping the database withrake db:drop
producesActiveRecord::EnvironmentMismatchError
.The text was updated successfully, but these errors were encountered: