Commit 504bc40293c5c76a8ad55ecf04499ba4a9c7ce88

Authored by Rodrigo Souto
1 parent 46148145

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 11 #
12 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 16 create_table "abuse_reports", :force => true do |t|
17 17 t.integer "reporter_id"
... ... @@ -542,9 +542,12 @@ ActiveRecord::Schema.define(:version => 20131121162641) do
542 542 t.integer "taggable_id"
543 543 t.string "taggable_type"
544 544 t.datetime "created_at"
  545 + t.integer "tagger_id"
  546 + t.string "tagger_type"
  547 + t.string "context", :limit => 128
545 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 551 add_index "taggings", ["taggable_id", "taggable_type"], :name => "index_taggings_on_taggable_id_and_taggable_type"
549 552  
550 553 create_table "tags", :force => true do |t|
... ... @@ -553,6 +556,8 @@ ActiveRecord::Schema.define(:version => 20131121162641) do
553 556 t.boolean "pending", :default => false
554 557 end
555 558  
  559 + add_index "tags", ["name"], :name => "index_tags_on_name", :unique => true
  560 +
556 561 create_table "tasks", :force => true do |t|
557 562 t.text "data"
558 563 t.integer "status"
... ...