Commit 2c1a1d1a22f736244ad59f18300417851ec3c70c
1 parent
3c813a4e
Exists in
master
and in
22 other branches
ActionItem629: fixing db schema from mysql bad behavior
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2437 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
db/schema.rb
| @@ -9,14 +9,14 @@ | @@ -9,14 +9,14 @@ | ||
| 9 | # | 9 | # |
| 10 | # It's strongly recommended to check this file into your version control system. | 10 | # It's strongly recommended to check this file into your version control system. |
| 11 | 11 | ||
| 12 | -ActiveRecord::Schema.define(:version => 52) do | 12 | +ActiveRecord::Schema.define(:version => 53) do |
| 13 | 13 | ||
| 14 | create_table "article_versions", :force => true do |t| | 14 | create_table "article_versions", :force => true do |t| |
| 15 | t.integer "article_id" | 15 | t.integer "article_id" |
| 16 | t.integer "version" | 16 | t.integer "version" |
| 17 | t.string "name" | 17 | t.string "name" |
| 18 | t.string "slug" | 18 | t.string "slug" |
| 19 | - t.text "path" | 19 | + t.text "path", :default => "" |
| 20 | t.integer "parent_id" | 20 | t.integer "parent_id" |
| 21 | t.text "body" | 21 | t.text "body" |
| 22 | t.text "abstract" | 22 | t.text "abstract" |
| @@ -43,7 +43,7 @@ ActiveRecord::Schema.define(:version => 52) do | @@ -43,7 +43,7 @@ ActiveRecord::Schema.define(:version => 52) do | ||
| 43 | create_table "articles", :force => true do |t| | 43 | create_table "articles", :force => true do |t| |
| 44 | t.string "name" | 44 | t.string "name" |
| 45 | t.string "slug" | 45 | t.string "slug" |
| 46 | - t.text "path" | 46 | + t.text "path", :default => "" |
| 47 | t.integer "parent_id" | 47 | t.integer "parent_id" |
| 48 | t.text "body" | 48 | t.text "body" |
| 49 | t.text "abstract" | 49 | t.text "abstract" |
| @@ -99,7 +99,7 @@ ActiveRecord::Schema.define(:version => 52) do | @@ -99,7 +99,7 @@ ActiveRecord::Schema.define(:version => 52) do | ||
| 99 | create_table "categories", :force => true do |t| | 99 | create_table "categories", :force => true do |t| |
| 100 | t.string "name" | 100 | t.string "name" |
| 101 | t.string "slug" | 101 | t.string "slug" |
| 102 | - t.text "path" | 102 | + t.text "path", :default => "" |
| 103 | t.integer "display_color" | 103 | t.integer "display_color" |
| 104 | t.integer "environment_id" | 104 | t.integer "environment_id" |
| 105 | t.integer "parent_id" | 105 | t.integer "parent_id" |
| @@ -191,7 +191,7 @@ ActiveRecord::Schema.define(:version => 52) do | @@ -191,7 +191,7 @@ ActiveRecord::Schema.define(:version => 52) do | ||
| 191 | t.integer "enterprise_id" | 191 | t.integer "enterprise_id" |
| 192 | t.integer "product_category_id" | 192 | t.integer "product_category_id" |
| 193 | t.string "name" | 193 | t.string "name" |
| 194 | - t.integer "price", :limit => 10, :precision => 10, :scale => 0 | 194 | + t.decimal "price" |
| 195 | t.text "description" | 195 | t.text "description" |
| 196 | t.string "image" | 196 | t.string "image" |
| 197 | t.datetime "created_at" | 197 | t.datetime "created_at" |