2020-07-20 14:08:25 +00:00
|
|
|
# We are hooking config loader to run automatically everytime migration is executed
|
|
|
|
Rake::Task['db:migrate'].enhance do
|
2020-09-07 09:49:41 +00:00
|
|
|
if ActiveRecord::Base.connection.table_exists? 'installation_configs'
|
|
|
|
puts 'Loading Installation config'
|
|
|
|
ConfigLoader.new.process
|
|
|
|
end
|
2020-07-20 14:08:25 +00:00
|
|
|
end
|