Removes column opt in enumerations table.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3240 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user