Rails4: replace deprecated Relation#update_all at CreateCustomFieldsRoles db migration

git-svn-id: http://svn.redmine.org/redmine/trunk@12485 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-07 07:50:59 +00:00
parent d2f540358f
commit 73b27124f1
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class CreateCustomFieldsRoles < ActiveRecord::Migration
t.column :role_id, :integer, :null => false t.column :role_id, :integer, :null => false
end end
add_index :custom_fields_roles, [:custom_field_id, :role_id], :unique => true, :name => :custom_fields_roles_ids add_index :custom_fields_roles, [:custom_field_id, :role_id], :unique => true, :name => :custom_fields_roles_ids
CustomField.update_all({:visible => true}, {:type => 'IssueCustomField'}) CustomField.where({:type => 'IssueCustomField'}).update_all({:visible => true})
end end
def self.down def self.down