# == Schema Information # # Table name: ratings # # id :integer not null, primary key # name :string # created_at :datetime not null # updated_at :datetime not null # description :string # class Rating < ApplicationRecord has_many :review_ratings, dependent: :destroy has_many :reviews, through: :review_ratings end