diff options
author | eileencodes <eileencodes@gmail.com> | 2019-07-31 12:22:01 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2019-07-31 12:22:01 -0400 |
commit | cd148be07298e298bb84f5df7b973f2b188830ee (patch) | |
tree | 61adca8929aa6274cf4526395e78cd82cac07cd5 /actioncable/test/worker_test.rb | |
parent | 4c8c8c87b07844b26564ca6aa2052660e601bc3d (diff) | |
download | rails-cd148be07298e298bb84f5df7b973f2b188830ee.tar.gz rails-cd148be07298e298bb84f5df7b973f2b188830ee.tar.bz2 rails-cd148be07298e298bb84f5df7b973f2b188830ee.zip |
Fix db:seed
The `rake db:seed` command was broken for the primary environment if the
application is using multiple databases. We never implemented `rake
db:seed` for other databases (coming soon), but that shouldn't break the
default case.
The reason this was broken was because `abort_if_pending_migrations`
would loop through the configs for all databases and check for
migrations but would leave the last established connection. So `db:seed`
was looking in the wrong database for the table to seed.
This PR doesn't fix the fact that `db:seed` doesn't work for multiple
databases but does fix the default case.
Fixes #36817
Co-authored-by: John Crepezzi <john.crepezzi@gmail.com>
Diffstat (limited to 'actioncable/test/worker_test.rb')
0 files changed, 0 insertions, 0 deletions