summaryrefslogtreecommitdiffstats
path: root/db/migrate/20090401221305_update_enumerations_to_sti.rb
blob: 50bd52010520dd481e9c746b16ff8066c27a737d (plain)
1
2
3
4
5
6
7
8
9
10
11
class UpdateEnumerationsToSti < ActiveRecord::Migration
  def self.up
    Enumeration.update_all("type = 'IssuePriority'", "opt = 'IPRI'")
    Enumeration.update_all("type = 'DocumentCategory'", "opt = 'DCAT'")
    Enumeration.update_all("type = 'TimeEntryActivity'", "opt = 'ACTI'")
  end

  def self.down
    # no-op
  end
end