blob: 031dd4656ae2dc3f836839cab1af0ab5ba14858b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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
|