Commit 3c813a4eef699b187ff9252309443e59808320a6

Authored by GrazienoPellegrino
1 parent 80d971f1

ActionItem147: Article could not accept comments

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2436 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 7 additions and 5 deletions   Show diff stats
db/schema.rb
... ... @@ -9,14 +9,14 @@
9 9 #
10 10 # It's strongly recommended to check this file into your version control system.
11 11  
12   -ActiveRecord::Schema.define(:version => 51) do
  12 +ActiveRecord::Schema.define(:version => 52) do
13 13  
14 14 create_table "article_versions", :force => true do |t|
15 15 t.integer "article_id"
16 16 t.integer "version"
17 17 t.string "name"
18 18 t.string "slug"
19   - t.text "path", :default => ""
  19 + t.text "path"
20 20 t.integer "parent_id"
21 21 t.text "body"
22 22 t.text "abstract"
... ... @@ -37,12 +37,13 @@ ActiveRecord::Schema.define(:version => 51) do
37 37 t.date "end_date"
38 38 t.integer "children_count", :default => 0
39 39 t.boolean "public_article", :default => true
  40 + t.boolean "accept_comments", :default => true
40 41 end
41 42  
42 43 create_table "articles", :force => true do |t|
43 44 t.string "name"
44 45 t.string "slug"
45   - t.text "path", :default => ""
  46 + t.text "path"
46 47 t.integer "parent_id"
47 48 t.text "body"
48 49 t.text "abstract"
... ... @@ -65,6 +66,7 @@ ActiveRecord::Schema.define(:version => 51) do
65 66 t.date "end_date"
66 67 t.integer "children_count", :default => 0
67 68 t.boolean "public_article", :default => true
  69 + t.boolean "accept_comments", :default => true
68 70 end
69 71  
70 72 create_table "articles_categories", :id => false, :force => true do |t|
... ... @@ -97,7 +99,7 @@ ActiveRecord::Schema.define(:version => 51) do
97 99 create_table "categories", :force => true do |t|
98 100 t.string "name"
99 101 t.string "slug"
100   - t.text "path", :default => ""
  102 + t.text "path"
101 103 t.integer "display_color"
102 104 t.integer "environment_id"
103 105 t.integer "parent_id"
... ... @@ -189,7 +191,7 @@ ActiveRecord::Schema.define(:version => 51) do
189 191 t.integer "enterprise_id"
190 192 t.integer "product_category_id"
191 193 t.string "name"
192   - t.decimal "price"
  194 + t.integer "price", :limit => 10, :precision => 10, :scale => 0
193 195 t.text "description"
194 196 t.string "image"
195 197 t.datetime "created_at"
... ...