Commit 504bc40293c5c76a8ad55ecf04499ba4a9c7ce88
1 parent
46148145
Exists in
master
and in
22 other branches
rails3: update schema with tag attributes
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
db/schema.rb
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | # | 11 | # |
| 12 | # It's strongly recommended to check this file into your version control system. | 12 | # It's strongly recommended to check this file into your version control system. |
| 13 | 13 | ||
| 14 | -ActiveRecord::Schema.define(:version => 20131121162641) do | 14 | +ActiveRecord::Schema.define(:version => 20140115190132) do |
| 15 | 15 | ||
| 16 | create_table "abuse_reports", :force => true do |t| | 16 | create_table "abuse_reports", :force => true do |t| |
| 17 | t.integer "reporter_id" | 17 | t.integer "reporter_id" |
| @@ -542,9 +542,12 @@ ActiveRecord::Schema.define(:version => 20131121162641) do | @@ -542,9 +542,12 @@ ActiveRecord::Schema.define(:version => 20131121162641) do | ||
| 542 | t.integer "taggable_id" | 542 | t.integer "taggable_id" |
| 543 | t.string "taggable_type" | 543 | t.string "taggable_type" |
| 544 | t.datetime "created_at" | 544 | t.datetime "created_at" |
| 545 | + t.integer "tagger_id" | ||
| 546 | + t.string "tagger_type" | ||
| 547 | + t.string "context", :limit => 128 | ||
| 545 | end | 548 | end |
| 546 | 549 | ||
| 547 | - add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id" | 550 | + add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], :name => "taggings_idx", :unique => true |
| 548 | add_index "taggings", ["taggable_id", "taggable_type"], :name => "index_taggings_on_taggable_id_and_taggable_type" | 551 | add_index "taggings", ["taggable_id", "taggable_type"], :name => "index_taggings_on_taggable_id_and_taggable_type" |
| 549 | 552 | ||
| 550 | create_table "tags", :force => true do |t| | 553 | create_table "tags", :force => true do |t| |
| @@ -553,6 +556,8 @@ ActiveRecord::Schema.define(:version => 20131121162641) do | @@ -553,6 +556,8 @@ ActiveRecord::Schema.define(:version => 20131121162641) do | ||
| 553 | t.boolean "pending", :default => false | 556 | t.boolean "pending", :default => false |
| 554 | end | 557 | end |
| 555 | 558 | ||
| 559 | + add_index "tags", ["name"], :name => "index_tags_on_name", :unique => true | ||
| 560 | + | ||
| 556 | create_table "tasks", :force => true do |t| | 561 | create_table "tasks", :force => true do |t| |
| 557 | t.text "data" | 562 | t.text "data" |
| 558 | t.integer "status" | 563 | t.integer "status" |