view db/migrate/.svn/text-base/20090401221305_update_enumerations_to_sti.rb.svn-base @ 700:c7306033ba7a feature_36

Merge from 699:bd88afe21831
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 19 Sep 2011 16:44:43 +0100
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