OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/db/migrate/20101107130441_add_custom_f...

10 lines
307 B

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
remove_column :custom_fields, :visible
end
end