view db/migrate/.svn/text-base/20090401221305_update_enumerations_to_sti.rb.svn-base @ 775:a7cb76a52ec0 feature_14

Route needed by the set_fieldset_status action (called by xhr).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 17 Nov 2011 14:52:13 +0000
parents 513646585e45
children
line wrap: on
line source
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