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
This commit is contained in:
Jean-Philippe Lang 2010-11-07 14:17:35 +00:00
parent 475530e59f
commit f8ca6e58aa
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
class AddCustomFieldsVisible < ActiveRecord::Migration class AddCustomFieldsVisible < ActiveRecord::Migration
def self.up def self.up
add_column :custom_fields, :visible, :boolean, :null => false, :default => true add_column :custom_fields, :visible, :boolean, :null => false, :default => true
CustomField.update_all("visible = #{CustomField.connection.quoted_true}")
end end
def self.down def self.down