You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20090401221305_update_enumerations_to_sti.rb 329B

1234567891011
  1. class UpdateEnumerationsToSti < ActiveRecord::Migration
  2. def self.up
  3. Enumeration.update_all("type = 'IssuePriority'", "opt = 'IPRI'")
  4. Enumeration.update_all("type = 'DocumentCategory'", "opt = 'DCAT'")
  5. Enumeration.update_all("type = 'TimeEntryActivity'", "opt = 'ACTI'")
  6. end
  7. def self.down
  8. # no-op
  9. end
  10. end