added artists, comments
This commit is contained in:
15
db/migrate/20100213183712_create_comment_votes.rb
Normal file
15
db/migrate/20100213183712_create_comment_votes.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateCommentVotes < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :comment_votes do |t|
|
||||
t.column :comment_id, :integer, :null => false
|
||||
t.column :user_id, :integer, :null => false
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :comment_votes, :user_id
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :comment_votes
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user