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
task :migrate => ['db:load_config', :environment] do
SecondBase.on_base { Rake::Task['db:migrate'].execute }
end
I tested this fix and it works fine
also I had another bug - after applying second_base:migrate I saw invalid inserts into schema_migrations in db/second_base/migrate/structure.sql (but second_base database schema_migrations had only correct data).
seems like this procees was broken after upgrading rake to 12.3.1
ActiveRecord task db:migrate loads environment and config
activerecord-5.1.4/lib/active_record/railties/databases.rake:56
And SecondBase task db:second_base:migrate loads only config
secondbase-2.1.4/lib/second_base/databases.rake:30
as result I can't you classes/modules from
app
folder in migrations for second databaseThe text was updated successfully, but these errors were encountered: