mirror of
https://github.com/redmine/redmine.git
synced 2024-08-18 14:10:15 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
For existing user custom fields, this new attribute is set to false by default to preserve the prior behaviour (it can turned on by editing the custom field in admin area). Note: on the registration form, *required* custom fields will be displayed even if they are not defined as editable so that the account can be created. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2276 e93f8b46-1217-0410-a6f0-8f06a7374b81
10 lines
216 B
Ruby
10 lines
216 B
Ruby
class AddCustomFieldsEditable < ActiveRecord::Migration
|
|
def self.up
|
|
add_column :custom_fields, :editable, :boolean, :default => true
|
|
end
|
|
|
|
def self.down
|
|
remove_column :custom_fields, :editable
|
|
end
|
|
end
|