Added project specific Enumeration overrides.
These will be used to track if Enumeration's custom data or active state is overridden on a project. An overridden Enumeration is one that is associated with a parent Enumeration. #4077 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2947 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class AddProjectToEnumerations < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :enumerations, :project_id, :integer, :null => true, :default => nil
|
||||
add_index :enumerations, :project_id
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :enumerations, :project_id
|
||||
remove_column :enumerations, :project_id
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class AddParentIdToEnumerations < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :enumerations, :parent_id, :integer, :null => true, :default => nil
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :enumerations, :parent_id
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user