public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
add migration and finish renaming categories to section.  all tests pass

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@852 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Sat Feb 18 16:04:31 -0800 2006
commit  eda213952ce661fdd38684e008716f155b6ef4d5
tree    9870e8213aaa819d24fe688960662aac7a137877
parent  d1ed897be3ed0044cccc614529e3a938ffdeb2cc
...
2
3
4
5
 
 
 
 
 
 
 
6
7
8
...
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
60
61
62
 
 
 
 
 
63
64
65
...
2
3
4
 
5
6
7
8
9
10
11
12
13
14
...
30
31
32
 
 
 
 
 
 
 
 
 
 
 
33
34
35
...
55
56
57
58
59
60
61
62
63
64
65
0
@@ -2,7 +2,13 @@
0
 # migrations feature of ActiveRecord to incrementally modify your database, and
0
 # then regenerate this schema definition.
0
 
0
-ActiveRecord::Schema.define(:version => 11) do
0
+ActiveRecord::Schema.define(:version => 12) do
0
+
0
+ create_table "assigned_sections", :force => true do |t|
0
+ t.column "article_id", :integer
0
+ t.column "section_id", :integer
0
+ t.column "position", :integer, :default => 1
0
+ end
0
 
0
   create_table "attachments", :force => true do |t|
0
     t.column "type", :string, :limit => 15
0
@@ -24,17 +30,6 @@ ActiveRecord::Schema.define(:version => 11) do
0
     t.column "updated_at", :datetime
0
   end
0
 
0
- create_table "categories", :force => true do |t|
0
- t.column "name", :string
0
- t.column "show_paged_articles", :boolean, :default => false
0
- end
0
-
0
- create_table "categorizations", :force => true do |t|
0
- t.column "article_id", :integer
0
- t.column "category_id", :integer
0
- t.column "position", :integer, :default => 1
0
- end
0
-
0
   create_table "contents", :force => true do |t|
0
     t.column "article_id", :integer
0
     t.column "user_id", :integer
0
@@ -60,6 +55,11 @@ ActiveRecord::Schema.define(:version => 11) do
0
     t.column "data", :binary
0
   end
0
 
0
+ create_table "sections", :force => true do |t|
0
+ t.column "name", :string
0
+ t.column "show_paged_articles", :boolean, :default => false
0
+ end
0
+
0
   create_table "sessions", :force => true do |t|
0
     t.column "session_id", :string
0
     t.column "data", :text
...
2
3
4
5
 
6
7
 
8
9
10
11
 
12
13
14
...
2
3
4
 
5
6
 
7
8
9
10
 
11
12
13
14
0
@@ -2,13 +2,13 @@ require File.dirname(__FILE__) + '/../../test_helper'
0
 require 'admin/sections_controller'
0
 
0
 # Re-raise errors caught by the controller.
0
-class Admin::CategoriesController; def rescue_action(e) raise e end; end
0
+class Admin::SectionsController; def rescue_action(e) raise e end; end
0
 
0
-class Admin::CategoriesControllerTest < Test::Unit::TestCase
0
+class Admin::SectionsControllerTest < Test::Unit::TestCase
0
   fixtures :sections, :users
0
 
0
   def setup
0
- @controller = Admin::CategoriesController.new
0
+ @controller = Admin::SectionsController.new
0
     @request = ActionController::TestRequest.new
0
     @response = ActionController::TestResponse.new
0
     login_as :quentin

Comments

    No one has commented yet.