Chore: Squash previous migrations (#1107)

Fixes: #784
Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
This commit is contained in:
Sojan Jose
2020-09-07 15:19:41 +05:30
committed by GitHub
parent 3544514470
commit 3ffb29bf4e
95 changed files with 292 additions and 857 deletions

View File

@@ -1,5 +1,7 @@
# We are hooking config loader to run automatically everytime migration is executed
Rake::Task['db:migrate'].enhance do
puts 'Loading Installation config'
ConfigLoader.new.process
if ActiveRecord::Base.connection.table_exists? 'installation_configs'
puts 'Loading Installation config'
ConfigLoader.new.process
end
end