1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-20 07:58:16 +00:00
redmine/db/migrate/20101107130441_add_custom_fields_visible.rb
Jean-Philippe Lang 475530e59f Adds a "visible" option on User and Project custom fields (#1738).
If set to false, the custom field won't be display on user profile/project overview.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4382 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-07 14:15:01 +00:00

10 lines
229 B
Ruby

class AddCustomFieldsVisible < ActiveRecord::Migration
def self.up
add_column :custom_fields, :visible, :boolean, :null => false, :default => true
end
def self.down
remove_column :custom_fields, :visible
end
end