ミラー元
https://github.com/redmine/redmine.git
前回の同期 2024-08-18 14:10:15 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3240 e93f8b46-1217-0410-a6f0-8f06a7374b81
13 行
442 B
Ruby
13 行
442 B
Ruby
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
|