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:
parent
475530e59f
commit
f8ca6e58aa
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue