summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/106_remove_projects_projects_count.rb9
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