Chore: Run ConfigLoader on migrate (#1072)
We have been duplicating the config loader migration. Hence let's hook it to rake db:migrate.
This commit is contained in:
5
lib/tasks/db_enhancements.rake
Normal file
5
lib/tasks/db_enhancements.rake
Normal file
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
end
|
||||
Reference in New Issue
Block a user