To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 20091010093521_fix_users_custom_values.rb @ 443:350acce374a2

History | View | Annotate | Download (276 Bytes)

1
class FixUsersCustomValues < ActiveRecord::Migration
2
  def self.up
3
    CustomValue.update_all("customized_type = 'Principal'", "customized_type = 'User'")
4
  end
5

    
6
  def self.down
7
    CustomValue.update_all("customized_type = 'User'", "customized_type = 'Principal'")
8
  end
9
end