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:
parent
d800b55ac6
commit
fa04098c20
2 changed files with 7 additions and 0 deletions
|
@ -18,3 +18,5 @@
|
||||||
value:
|
value:
|
||||||
- name: MAILER_SUPPORT_EMAIL
|
- name: MAILER_SUPPORT_EMAIL
|
||||||
value:
|
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
|
Loading…
Reference in a new issue