diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-24 11:48:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-24 11:48:38 +0000 |
commit | 97e31c40261491df8afd0297dd41050d165881ac (patch) | |
tree | e8f78397b3076a14956124aec9df392d4ad7640c /db/migrate/106_remove_projects_projects_count.rb | |
parent | c9906480d3f279977720dc3f61534f4a5b77d1d2 (diff) | |
download | redmine-97e31c40261491df8afd0297dd41050d165881ac.tar.gz redmine-97e31c40261491df8afd0297dd41050d165881ac.zip |
Removes unused projects_count column from projects table.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2305 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/106_remove_projects_projects_count.rb')
-rw-r--r-- | db/migrate/106_remove_projects_projects_count.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/106_remove_projects_projects_count.rb b/db/migrate/106_remove_projects_projects_count.rb new file mode 100644 index 000000000..68bb3d115 --- /dev/null +++ b/db/migrate/106_remove_projects_projects_count.rb @@ -0,0 +1,9 @@ +class RemoveProjectsProjectsCount < ActiveRecord::Migration + def self.up + remove_column :projects, :projects_count + end + + def self.down + add_column :projects, :projects_count, :integer, :default => 0 + end +end |