star voting system for proposals

This commit is contained in:
differentreality 2013-08-16 12:46:49 +03:00
parent 2314d943e1
commit 834362491e
17 changed files with 157 additions and 3 deletions

View file

@ -0,0 +1,15 @@
class CreateVotes < ActiveRecord::Migration
def up
create_table :votes do |t|
t.references :person
t.references :event
t.integer :rating
t.timestamps
end
end
def down
drop_table :votes
end
end