]> source.dussan.org Git - redmine.git/commitdiff
Removes unused projects_count column from projects table.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 Jan 2009 11:48:38 +0000 (11:48 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 Jan 2009 11:48:38 +0000 (11:48 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2305 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/106_remove_projects_projects_count.rb [new file with mode: 0644]
test/fixtures/projects.yml

diff --git a/db/migrate/106_remove_projects_projects_count.rb b/db/migrate/106_remove_projects_projects_count.rb
new file mode 100644 (file)
index 0000000..68bb3d1
--- /dev/null
@@ -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
index e355e5da8e5b640eb233d4a1be321606bfffd77c..de692af0d8f9d98c084e3c540d3f55c182f4b6c8 100644 (file)
@@ -3,7 +3,6 @@ projects_001:
   created_on: 2006-07-19 19:13:59 +02:00\r
   name: eCookbook\r
   updated_on: 2006-07-19 22:53:01 +02:00\r
-  projects_count: 3\r
   id: 1\r
   description: Recipes management application\r
   homepage: http://ecookbook.somenet.foo/\r
@@ -16,7 +15,6 @@ projects_002:
   created_on: 2006-07-19 19:14:19 +02:00\r
   name: OnlineStore\r
   updated_on: 2006-07-19 19:14:19 +02:00\r
-  projects_count: 0\r
   id: 2\r
   description: E-commerce web site\r
   homepage: ""\r
@@ -29,7 +27,6 @@ projects_003:
   created_on: 2006-07-19 19:15:21 +02:00\r
   name: eCookbook Subproject 1\r
   updated_on: 2006-07-19 19:18:12 +02:00\r
-  projects_count: 0\r
   id: 3\r
   description: eCookBook Subproject 1\r
   homepage: ""\r
@@ -42,7 +39,6 @@ projects_004:
   created_on: 2006-07-19 19:15:51 +02:00\r
   name: eCookbook Subproject 2\r
   updated_on: 2006-07-19 19:17:07 +02:00\r
-  projects_count: 0\r
   id: 4\r
   description: eCookbook Subproject 2\r
   homepage: ""\r
@@ -55,7 +51,6 @@ projects_005:
   created_on: 2006-07-19 19:15:51 +02:00\r
   name: Private child of eCookbook\r
   updated_on: 2006-07-19 19:17:07 +02:00\r
-  projects_count: 0\r
   id: 5\r
   description: This is a private subproject of a public project\r
   homepage: ""\r
@@ -68,7 +63,6 @@ projects_006:
   created_on: 2006-07-19 19:15:51 +02:00\r
   name: Child of private child\r
   updated_on: 2006-07-19 19:17:07 +02:00\r
-  projects_count: 0\r
   id: 6\r
   description: This is a public subproject of a private project\r
   homepage: ""\r