Sha256: a74ebd4ed0b3d1bedbc91d9fac747fb058d57ac04ea062a42ab8da7160b62a88
Contents?: true
Size: 460 Bytes
Versions: 34
Compression:
Stored size: 460 Bytes
Contents
class RemoveEnumerationsOpt < ActiveRecord::Migration def self.up remove_column :enumerations, :opt end def self.down add_column :enumerations, :opt, :string, :limit => 4, :default => '', :null => false Enumeration.where("type = 'IssuePriority'").update_all("opt = 'IPRI'") Enumeration.where("type = 'DocumentCategory'").update_all("opt = 'DCAT'") Enumeration.where("type = 'TimeEntryActivity'").update_all("opt = 'ACTI'") end end
Version data entries
34 entries across 34 versions & 1 rubygems