20090401221305_update_enumerations_to_sti.rb
11 lines
| 329 B
| text/x-ruby
|
RubyLexer
|
r2677 | 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 | ||||