##// END OF EJS Templates
tagged version 0.9.3...
tagged version 0.9.3 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/tags/0.9.3@3515 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3126:8db9ecef08ee
r3401:fc6ccc1ea259 0.9.3
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