##// END OF EJS Templates
Rails4: replace deprecated Relation#update_all at CreateCustomFieldsRoles db migration...
Toshi MARUYAMA -
r12210:73b27124f1d5
parent child
Show More
@@ -5,7 +5,7 class CreateCustomFieldsRoles < ActiveRecord::Migration
5 t.column :role_id, :integer, :null => false
5 t.column :role_id, :integer, :null => false
6 end
6 end
7 add_index :custom_fields_roles, [:custom_field_id, :role_id], :unique => true, :name => :custom_fields_roles_ids
7 add_index :custom_fields_roles, [:custom_field_id, :role_id], :unique => true, :name => :custom_fields_roles_ids
8 CustomField.update_all({:visible => true}, {:type => 'IssueCustomField'})
8 CustomField.where({:type => 'IssueCustomField'}).update_all({:visible => true})
9 end
9 end
10
10
11 def self.down
11 def self.down
General Comments 0
You need to be logged in to leave comments. Login now