From 658197fe15ac132c589ebfc32ff0c48657f1e647 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 28 Jan 2014 15:33:46 +0000 Subject: [PATCH] schema: add vote table to schema --- db/schema.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index fbbed1d..106b8df 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -625,4 +625,17 @@ ActiveRecord::Schema.define(:version => 20140108132730) do t.integer "organization_id" end + create_table "votes", :force => true do |t| + t.integer "vote", :null => false + t.integer "voteable_id", :null => false + t.string "voteable_type", :null => false + t.integer "voter_id" + t.string "voter_type" + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "votes", ["voteable_id", "voteable_type"], :name => "fk_voteables" + add_index "votes", ["voter_id", "voter_type"], :name => "fk_voters" + end -- libgit2 0.21.2