docbrown/db/migrate/20190227163803_create_rating_votes.rb
Ben Halpern 532903c688
Add experience level averaging to articles (#1922)
* Add experience level averaging to articles

* Adjust copy on /mod ratings page
2019-02-28 08:17:29 -08:00

13 lines
326 B
Ruby

class CreateRatingVotes < ActiveRecord::Migration[5.1]
def change
create_table :rating_votes do |t|
t.bigint :user_id
t.bigint :article_id
t.string :group
t.float :rating
t.timestamps
end
add_index :rating_votes, :user_id
add_index :rating_votes, :article_id
end
end