diff options
-rw-r--r-- | db/migrate/106_remove_projects_projects_count.rb | 9 | ||||
-rw-r--r-- | test/fixtures/projects.yml | 6 |
2 files changed, 9 insertions, 6 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 diff --git a/test/fixtures/projects.yml b/test/fixtures/projects.yml index e355e5da8..de692af0d 100644 --- a/test/fixtures/projects.yml +++ b/test/fixtures/projects.yml @@ -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: ""
|