diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-07 07:50:59 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-07 07:50:59 +0000 |
commit | 73b27124f1d5c25531a1d397f0fbdae9d6d51635 (patch) | |
tree | f49d83199a49795579f6b02e48038cecf8072f5a /db/migrate/20130713104233_create_custom_fields_roles.rb | |
parent | d2f540358f39b3cb89885f4733e51d8d183b4720 (diff) | |
download | redmine-73b27124f1d5c25531a1d397f0fbdae9d6d51635.tar.gz redmine-73b27124f1d5c25531a1d397f0fbdae9d6d51635.zip |
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
Diffstat (limited to 'db/migrate/20130713104233_create_custom_fields_roles.rb')
-rw-r--r-- | db/migrate/20130713104233_create_custom_fields_roles.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20130713104233_create_custom_fields_roles.rb b/db/migrate/20130713104233_create_custom_fields_roles.rb index 458bfb50b..e9eeccc17 100644 --- a/db/migrate/20130713104233_create_custom_fields_roles.rb +++ b/db/migrate/20130713104233_create_custom_fields_roles.rb @@ -5,7 +5,7 @@ class CreateCustomFieldsRoles < ActiveRecord::Migration t.column :role_id, :integer, :null => false end 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 def self.down |