Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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