added post voting

This commit is contained in:
albert
2010-02-15 17:45:09 -05:00
parent 80f033f253
commit 9f353c32f4
10 changed files with 112 additions and 19 deletions

View File

@@ -0,0 +1,13 @@
class CreatePostVotes < ActiveRecord::Migration
def self.up
create_table :post_votes do |t|
t.column :post_id, :integer, :null => false
t.column :user_id, :integer, :null => false
t.timestamps
end
end
def self.down
drop_table :post_votes
end
end