summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091010093521_fix_users_custom_values.rb
blob: 93c5cfba2c9c328a31b0a0140718d3aa2a58d699 (plain)
1
2
3
4
5
6
7
8
9
10
11
class FixUsersCustomValues < ActiveRecord::Migration
  def self.up
    CustomValue.where("customized_type = 'User'").
      update_all("customized_type = 'Principal'")
  end

  def self.down
    CustomValue.where("customized_type = 'Principal'").
      update_all("customized_type = 'User'")
  end
end