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:
@@ -18,3 +18,5 @@
|
||||
value:
|
||||
- name: MAILER_SUPPORT_EMAIL
|
||||
value:
|
||||
- name: CREATE_NEW_ACCOUNT_FROM_DASHBOARD
|
||||
value: false
|
||||
|
||||
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