mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-17 19:45:06 +00:00
8 lines
270 B
Ruby
8 lines
270 B
Ruby
# We are hooking config loader to run automatically everytime migration is executed
|
|
Rake::Task['db:migrate'].enhance do
|
|
if ActiveRecord::Base.connection.table_exists? 'installation_configs'
|
|
puts 'Loading Installation config'
|
|
ConfigLoader.new.process
|
|
end
|
|
end
|