Implement Event Ratings

This commit is contained in:
shlok007 2016-09-22 20:06:46 -04:00 committed by Shlok Srivastava
parent 5be1ad52ee
commit 20f4853487
67 changed files with 1298 additions and 378 deletions

View file

@ -0,0 +1,13 @@
class CreateOverallAverages < ActiveRecord::Migration
def self.up
create_table :overall_averages do |t|
t.belongs_to :rateable, polymorphic: true
t.float :overall_avg, null: false
t.timestamps
end
end
def self.down
drop_table :overall_averages
end
end