diff options
author | schneems <richard.schneeman@gmail.com> | 2016-01-11 11:58:12 -0600 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2016-01-11 11:58:12 -0600 |
commit | 4d60e93174a3d6d90b1a06fc7515cb5cd749a6f3 (patch) | |
tree | 15b55ee18593a0c256510aeecde7eb07cb1b029c /Rakefile | |
parent | a703999c62aa9950920bbc621aa332da337c68ca (diff) | |
download | rails-4d60e93174a3d6d90b1a06fc7515cb5cd749a6f3.tar.gz rails-4d60e93174a3d6d90b1a06fc7515cb5cd749a6f3.tar.bz2 rails-4d60e93174a3d6d90b1a06fc7515cb5cd749a6f3.zip |
Set environment even when no migration runs
This PR addresses the issue described in https://github.com/rails/rails/pull/22967#issuecomment-170251635. If the database is non empty and has no new migrations than `db:migrate` will not set the environment. This PR works by always setting the environment value on successful `up` migration regardless of whether or not a migration was actually executed.
Diffstat (limited to 'Rakefile')
0 files changed, 0 insertions, 0 deletions