##// END OF EJS Templates
Tagging 1.0.2...
Tagging 1.0.2 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/tags/1.0.2@4213 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3126:8db9ecef08ee
r4099:b5cfe790446f 1.0.2
Show More
20091225164732_remove_enumerations_opt.rb
12 lines | 442 B | text/x-ruby | RubyLexer
/ db / migrate / 20091225164732_remove_enumerations_opt.rb
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