Redmine/db/migrate/20090401221305_update_enume...

12 lines
347 B
Ruby
Raw Normal View History

class UpdateEnumerationsToSti < ActiveRecord::Migration
def self.up
Enumeration.where("opt = 'IPRI'").update_all("type = 'IssuePriority'")
Enumeration.where("opt = 'DCAT'").update_all("type = 'DocumentCategory'")
Enumeration.where("opt = 'ACTI'").update_all("type = 'TimeEntryActivity'")
end
def self.down
# no-op
end
end