We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 825d9b0 commit 79601a7Copy full SHA for 79601a7
config/application.rb
@@ -32,5 +32,12 @@ class Application < Rails::Application
32
# the framework and any gems in your application.
33
34
config.active_job.queue_adapter = :sidekiq
35
+
36
+ config.after_initialize do
37
+ if ENV["MIGRATION_DATABASE_URL"].present?
38
+ puts "Connecting to migration database"
39
+ ActiveRecord::Base.establish_connection(ENV["MIGRATION_DATABASE_URL"])
40
+ end
41
42
end
43
0 commit comments