From 37bfbaff517b0599008411d9c49aabe0a6b0e70a Mon Sep 17 00:00:00 2001 From: Jens Pfeifer Date: Wed, 11 Jan 2017 13:15:05 +0000 Subject: [PATCH] Fixed variable check. --- db/migrate/20161117000003_store_config_name_update_issue_428.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20161117000003_store_config_name_update_issue_428.rb b/db/migrate/20161117000003_store_config_name_update_issue_428.rb index a8146c853..b58668ed2 100644 --- a/db/migrate/20161117000003_store_config_name_update_issue_428.rb +++ b/db/migrate/20161117000003_store_config_name_update_issue_428.rb @@ -3,7 +3,7 @@ class StoreConfigNameUpdateIssue428 < ActiveRecord::Migration # return if it's a new setup return if !Setting.find_by(name: 'system_init_done') setting = Setting.find_by(name: 'storage') - return if !Setting + return if !setting setting.name = 'storage_provider' setting.options = { form: [