class CreateRatings < ActiveRecord::Migration[5.1]
  def change
    create_table :ratings do |t|
      t.references :movie, foreign_key: true
      t.references :user, foreign_key: true
      t.integer :value, default: 1

      t.timestamps
    end
  end
end
