From 9c0a535d2863602df2629ad662837afcfb446ed8 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 12 Jul 2015 03:37:28 +0200 Subject: [PATCH] Fixed migration on fresh setups. --- db/migrate/20150712000001_update_setting.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrate/20150712000001_update_setting.rb b/db/migrate/20150712000001_update_setting.rb index 1e1b2f4d6..fa9d50478 100644 --- a/db/migrate/20150712000001_update_setting.rb +++ b/db/migrate/20150712000001_update_setting.rb @@ -2,6 +2,7 @@ class UpdateSetting < ActiveRecord::Migration def up %w(product_name product_logo organization).each {|setting_name| setting = Setting.find_by(name: setting_name) + next if !setting setting.area = 'System::Branding' setting.save }