summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091010093521_fix_users_custom_values.rb
blob: d2d6026f01dde3322fdabaea76ccdaf815740b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: false

class FixUsersCustomValues < ActiveRecord::Migration[4.2]
  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