選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

20090401221305_update_enumerations_to_sti.rb 352B

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