summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-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