Add vote functionality to tracks

This commit is contained in:
Rishabh Singh 2019-08-09 17:33:42 +05:30
parent 8b2f2b538e
commit 92b09c7de4
18 changed files with 237 additions and 19 deletions

View file

@ -0,0 +1,6 @@
class AddPolymorphicToVote < ActiveRecord::Migration[5.2]
def change
add_column :votes, :votable_type, :string
add_column :votes, :votable_id, :integer
end
end