From: Jean-Philippe Lang Date: Sun, 7 Nov 2010 14:17:35 +0000 (+0000) Subject: Make sure existing custom fields visibility is set to true. X-Git-Tag: 1.1.0~192 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f8ca6e58aa88ab95a3fe1b85b584c3735a68c12b;p=redmine.git Make sure existing custom fields visibility is set to true. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4383 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/db/migrate/20101107130441_add_custom_fields_visible.rb b/db/migrate/20101107130441_add_custom_fields_visible.rb index 25ef44662..9d59faee5 100644 --- a/db/migrate/20101107130441_add_custom_fields_visible.rb +++ b/db/migrate/20101107130441_add_custom_fields_visible.rb @@ -1,6 +1,7 @@ class AddCustomFieldsVisible < ActiveRecord::Migration def self.up add_column :custom_fields, :visible, :boolean, :null => false, :default => true + CustomField.update_all("visible = #{CustomField.connection.quoted_true}") end def self.down