diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2009-10-21 22:34:34 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2009-10-21 22:34:34 +0000 |
commit | 29301c8a381aa5995a0ce2e10ad91f210dc6464f (patch) | |
tree | 5d855e29cb37ca5e2dc28a76a9b1bd4c781cce08 /db/migrate/20090403001910_add_project_to_enumerations.rb | |
parent | e76d4c5c4c3f2beb8be1f441148e4627a14d37d1 (diff) | |
download | redmine-29301c8a381aa5995a0ce2e10ad91f210dc6464f.tar.gz redmine-29301c8a381aa5995a0ce2e10ad91f210dc6464f.zip |
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
Diffstat (limited to 'db/migrate/20090403001910_add_project_to_enumerations.rb')
-rw-r--r-- | db/migrate/20090403001910_add_project_to_enumerations.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20090403001910_add_project_to_enumerations.rb b/db/migrate/20090403001910_add_project_to_enumerations.rb new file mode 100644 index 000000000..a3db6d51e --- /dev/null +++ b/db/migrate/20090403001910_add_project_to_enumerations.rb @@ -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 |