Mercurial > hg > soundsoftware-site
view db/migrate/.svn/text-base/20091010093521_fix_users_custom_values.rb.svn-base @ 431:d3af621ba9d4 bug_168
Update the master branch via git pull master rather than git fetch (which doesn't merge any particular branch)
author | Chris Cannam |
---|---|
date | Sun, 05 Jun 2011 10:28:27 +0100 |
parents | 513646585e45 |
children |
line wrap: on
line source
class FixUsersCustomValues < ActiveRecord::Migration def self.up CustomValue.update_all("customized_type = 'Principal'", "customized_type = 'User'") end def self.down CustomValue.update_all("customized_type = 'User'", "customized_type = 'Principal'") end end