From 72a25ffdc50d06bb7ddee9a218b1e9d8b1b4cccc Mon Sep 17 00:00:00 2001 From: Koichi MATSUMOTO Date: Fri, 5 Jun 2020 02:03:10 +0900 Subject: [PATCH 1/2] BugFix: Fix undefined method `compare_and_save` (#921) Fix undefined method `compare_and_save` in config loader --- lib/config_loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config_loader.rb b/lib/config_loader.rb index 58abf9c21..a313bb190 100644 --- a/lib/config_loader.rb +++ b/lib/config_loader.rb @@ -65,7 +65,7 @@ class ConfigLoader if config return false if config.value.to_s == account_features.to_s - compare_and_save(config) + compare_and_save_feature(config) else save_as_new_config({ name: 'ACCOUNT_LEVEL_FEATURE_DEFAULTS', value: account_features }) end From 68be7e3ea873690929ef5d2f7799ff6fbabb93fe Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Thu, 4 Jun 2020 23:13:10 +0530 Subject: [PATCH 2/2] Use db:prepare instead of db:migrate (#924) Use db:prepare instead of db:migrate Co-authored-by: Pranav Raj Sreepuram --- Procfile | 2 +- app.json | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Procfile b/Procfile index 34f447dda..73a131355 100644 --- a/Procfile +++ b/Procfile @@ -1,3 +1,3 @@ -release: bundle exec rake db:migrate +release: bundle exec rails db:prepare web: bin/rails server -p $PORT -e $RAILS_ENV worker: bundle exec sidekiq -C config/sidekiq.yml diff --git a/app.json b/app.json index 300f363db..679b7f974 100644 --- a/app.json +++ b/app.json @@ -12,9 +12,6 @@ "vue" ], "success_url": "/app/login", - "scripts": { - "postdeploy": "bundle exec rake db:schema:load && bundle exec rake db:seed" - }, "env": { "SECRET_TOKEN": { "description": "A secret key for verifying the integrity of signed cookies.",