socialforge/db/migrate/20090401221305_update_enume...

12 lines
329 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
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