]> source.dussan.org Git - redmine.git/commitdiff
Make sure existing custom fields visibility is set to true.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 7 Nov 2010 14:17:35 +0000 (14:17 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 7 Nov 2010 14:17:35 +0000 (14:17 +0000)
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

index 25ef446628da55a67a40f483689c6b786e6ac580..9d59faee5a1ece4fa4ab3756aee845b56798b82b 100644 (file)
@@ -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