Mercurial > hg > soundsoftware-site
view db/migrate/20091225164732_remove_enumerations_opt.rb @ 1380:fa92d13876d0 luisf
Authorship Edit/Save buttons now working properly in the publication#new view.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Sat, 31 Aug 2013 18:36:57 +0100 |
parents | 513646585e45 |
children |
line wrap: on
line source
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.update_all("opt = 'IPRI'", "type = 'IssuePriority'") Enumeration.update_all("opt = 'DCAT'", "type = 'DocumentCategory'") Enumeration.update_all("opt = 'ACTI'", "type = 'TimeEntryActivity'") end end