Commit 2c1a1d1a22f736244ad59f18300417851ec3c70c
1 parent
3c813a4e
Exists in
master
and in
29 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 | 9 | # |
| 10 | 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 | 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" | |
| 19 | + t.text "path", :default => "" | |
| 20 | 20 | t.integer "parent_id" |
| 21 | 21 | t.text "body" |
| 22 | 22 | t.text "abstract" |
| ... | ... | @@ -43,7 +43,7 @@ ActiveRecord::Schema.define(:version => 52) do |
| 43 | 43 | create_table "articles", :force => true do |t| |
| 44 | 44 | t.string "name" |
| 45 | 45 | t.string "slug" |
| 46 | - t.text "path" | |
| 46 | + t.text "path", :default => "" | |
| 47 | 47 | t.integer "parent_id" |
| 48 | 48 | t.text "body" |
| 49 | 49 | t.text "abstract" |
| ... | ... | @@ -99,7 +99,7 @@ ActiveRecord::Schema.define(:version => 52) do |
| 99 | 99 | create_table "categories", :force => true do |t| |
| 100 | 100 | t.string "name" |
| 101 | 101 | t.string "slug" |
| 102 | - t.text "path" | |
| 102 | + t.text "path", :default => "" | |
| 103 | 103 | t.integer "display_color" |
| 104 | 104 | t.integer "environment_id" |
| 105 | 105 | t.integer "parent_id" |
| ... | ... | @@ -191,7 +191,7 @@ ActiveRecord::Schema.define(:version => 52) do |
| 191 | 191 | t.integer "enterprise_id" |
| 192 | 192 | t.integer "product_category_id" |
| 193 | 193 | t.string "name" |
| 194 | - t.integer "price", :limit => 10, :precision => 10, :scale => 0 | |
| 194 | + t.decimal "price" | |
| 195 | 195 | t.text "description" |
| 196 | 196 | t.string "image" |
| 197 | 197 | t.datetime "created_at" | ... | ... |