summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-07 14:17:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-07 14:17:35 +0000
commitf8ca6e58aa88ab95a3fe1b85b584c3735a68c12b (patch)
treedb34686c3f9597841f3fabd7e5c3cf51cd43d51c
parent475530e59f65f3e8d24623383512e092b2d02521 (diff)
downloadredmine-f8ca6e58aa88ab95a3fe1b85b584c3735a68c12b.tar.gz
redmine-f8ca6e58aa88ab95a3fe1b85b584c3735a68c12b.zip
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
-rw-r--r--db/migrate/20101107130441_add_custom_fields_visible.rb1
1 files changed, 1 insertions, 0 deletions
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