From f8ca6e58aa88ab95a3fe1b85b584c3735a68c12b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 7 Nov 2010 14:17:35 +0000 Subject: [PATCH] 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 --- db/migrate/20101107130441_add_custom_fields_visible.rb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5