Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
12
db/migrate/20091225164732_remove_enumerations_opt.rb
Normal file
12
db/migrate/20091225164732_remove_enumerations_opt.rb
Normal file
|
@ -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.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
|
Loading…
Add table
Add a link
Reference in a new issue