Fixed variable check.

This commit is contained in:
Jens Pfeifer 2017-01-11 13:15:05 +00:00
parent 09b05b220d
commit 37bfbaff51

View file

@ -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: [