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
This commit is contained in:
Jean-Philippe Lang 2009-01-24 11:48:38 +00:00
parent c9906480d3
commit 97e31c4026
2 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -3,7 +3,6 @@ projects_001:
created_on: 2006-07-19 19:13:59 +02:00
name: eCookbook
updated_on: 2006-07-19 22:53:01 +02:00
projects_count: 3
id: 1
description: Recipes management application
homepage: http://ecookbook.somenet.foo/
@ -16,7 +15,6 @@ projects_002:
created_on: 2006-07-19 19:14:19 +02:00
name: OnlineStore
updated_on: 2006-07-19 19:14:19 +02:00
projects_count: 0
id: 2
description: E-commerce web site
homepage: ""
@ -29,7 +27,6 @@ projects_003:
created_on: 2006-07-19 19:15:21 +02:00
name: eCookbook Subproject 1
updated_on: 2006-07-19 19:18:12 +02:00
projects_count: 0
id: 3
description: eCookBook Subproject 1
homepage: ""
@ -42,7 +39,6 @@ projects_004:
created_on: 2006-07-19 19:15:51 +02:00
name: eCookbook Subproject 2
updated_on: 2006-07-19 19:17:07 +02:00
projects_count: 0
id: 4
description: eCookbook Subproject 2
homepage: ""
@ -55,7 +51,6 @@ projects_005:
created_on: 2006-07-19 19:15:51 +02:00
name: Private child of eCookbook
updated_on: 2006-07-19 19:17:07 +02:00
projects_count: 0
id: 5
description: This is a private subproject of a public project
homepage: ""
@ -68,7 +63,6 @@ projects_006:
created_on: 2006-07-19 19:15:51 +02:00
name: Child of private child
updated_on: 2006-07-19 19:17:07 +02:00
projects_count: 0
id: 6
description: This is a public subproject of a private project
homepage: ""