##// END OF EJS Templates
tagged version 3.3.1...
tagged version 3.3.1 git-svn-id: http://svn.redmine.org/redmine/tags/3.3.1@15904 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12213:0bc3ef5014dd
r15522:93cd8829a79f 3.3.1
Show More
20091010093521_fix_users_custom_values.rb
11 lines | 302 B | text/x-ruby | RubyLexer
/ db / migrate / 20091010093521_fix_users_custom_values.rb
Jean-Philippe Lang
Fixes User/CustomValue association broken by r2869 (#3978)....
r2791 class FixUsersCustomValues < ActiveRecord::Migration
def self.up
Toshi MARUYAMA
Rails4: replace deprecated Relation#update_all at db migrations...
r12213 CustomValue.where("customized_type = 'User'").
update_all("customized_type = 'Principal'")
Jean-Philippe Lang
Fixes User/CustomValue association broken by r2869 (#3978)....
r2791 end
def self.down
Toshi MARUYAMA
Rails4: replace deprecated Relation#update_all at db migrations...
r12213 CustomValue.where("customized_type = 'Principal'").
update_all("customized_type = 'User'")
Jean-Philippe Lang
Fixes User/CustomValue association broken by r2869 (#3978)....
r2791 end
end