Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Queen < ApplicationRecord
- has_many :trivia, dependent: :destroy
- has_many :quotes, dependent: :destroy
- has_many :appearances
- has_many :seasons, through: :appearances
- accepts_nested_attributes_for :trivia, :quotes, :seasons, :appearances
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement