1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test
eileencodes 45eb0f3bec
Fix migration ordering across databases
Previously if there were 2 migrations in one db and 1 migration in the
other db all the migrations for db one would run and then all migrations
for db two would run. If a migration in one database depended on a
migration in another database then it could fail. This is probably
pretty rare, however in a multi-db application that's moving tables from
one db to another, running them out of order could result in a migration
error.

In this this change we collect all the versions for each migration and
the corresponding db_config so we can run them in the order they are
created rather than per-db.

Closes #41664
Related #41538

Co-authored-by: John Crepezzi <john.crepezzi@gmail.com>
Co-authored-by: Kiril Dokh <dsounded@gmail.com>
2021-06-25 11:54:00 -04:00
..
application Fix migration ordering across databases 2021-06-25 11:54:00 -04:00
command Remove Command::Spellchecker and use DidYouMean for suggestions 2021-06-04 09:20:43 +02:00
commands Implement ActionMailbox incinerate in conductor 2021-06-24 15:35:56 -03:00
configuration
engine
fixtures Populate ARGV with Rails::Command.invoke args 2021-04-03 10:12:52 -05:00
generators Fix the turbolinks npm -> github reference 2021-06-22 10:23:42 -05:00
isolation Refactor CVE-2021-22881 fix 2021-02-13 12:03:23 -06:00
minitest
railties Convert many ActiveRecord::Base class variable into instance variables 2021-06-10 18:31:33 +02:00
test_unit
abstract_unit.rb
app_loader_test.rb
backtrace_cleaner_test.rb
code_statistics_calculator_test.rb
code_statistics_test.rb
console_helpers.rb
engine_test.rb
env_helpers.rb
generators_test.rb Remove Command::Spellchecker and use DidYouMean for suggestions 2021-06-04 09:20:43 +02:00
initializable_test.rb
json_params_parsing_test.rb
path_generation_test.rb
paths_test.rb
rack_logger_test.rb
rails_info_controller_test.rb
rails_info_test.rb
secrets_test.rb
version_test.rb