##// END OF EJS Templates
Enforced unicity of relations between 2 issues with a database index (#9685)....
Enforced unicity of relations between 2 issues with a database index (#9685). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8041 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r4269:f8ca6e58aa88
r7921:39ae7b66f86a
Show More
20101107130441_add_custom_fields_visible.rb
10 lines | 307 B | text/x-ruby | RubyLexer
/ db / migrate / 20101107130441_add_custom_fields_visible.rb
Jean-Philippe Lang
Adds a "visible" option on User and Project custom fields (#1738)....
r4268 class AddCustomFieldsVisible < ActiveRecord::Migration
def self.up
add_column :custom_fields, :visible, :boolean, :null => false, :default => true
Jean-Philippe Lang
Make sure existing custom fields visibility is set to true....
r4269 CustomField.update_all("visible = #{CustomField.connection.quoted_true}")
Jean-Philippe Lang
Adds a "visible" option on User and Project custom fields (#1738)....
r4268 end
def self.down
remove_column :custom_fields, :visible
end
end