Commit 658197fe15ac132c589ebfc32ff0c48657f1e647
1 parent
caf8c081
Exists in
master
and in
29 other branches
schema: add vote table to schema
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
db/schema.rb
@@ -625,4 +625,17 @@ ActiveRecord::Schema.define(:version => 20140108132730) do | @@ -625,4 +625,17 @@ ActiveRecord::Schema.define(:version => 20140108132730) do | ||
625 | t.integer "organization_id" | 625 | t.integer "organization_id" |
626 | end | 626 | end |
627 | 627 | ||
628 | + create_table "votes", :force => true do |t| | ||
629 | + t.integer "vote", :null => false | ||
630 | + t.integer "voteable_id", :null => false | ||
631 | + t.string "voteable_type", :null => false | ||
632 | + t.integer "voter_id" | ||
633 | + t.string "voter_type" | ||
634 | + t.datetime "created_at" | ||
635 | + t.datetime "updated_at" | ||
636 | + end | ||
637 | + | ||
638 | + add_index "votes", ["voteable_id", "voteable_type"], :name => "fk_voteables" | ||
639 | + add_index "votes", ["voter_id", "voter_type"], :name => "fk_voters" | ||
640 | + | ||
628 | end | 641 | end |