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.
2 parents 8e62b78 + 8d3d3b2 commit dc2c7e8Copy full SHA for dc2c7e8
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