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:
Sojan Jose 2020-07-20 19:38:25 +05:30 committed by GitHub
parent d800b55ac6
commit fa04098c20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -18,3 +18,5 @@
value:
- name: MAILER_SUPPORT_EMAIL
value:
- name: CREATE_NEW_ACCOUNT_FROM_DASHBOARD
value: false

View 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