Guest User

Untitled

a guest
Sep 12th, 2019
101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Queen < ApplicationRecord
  2. has_many :trivia, dependent: :destroy
  3. has_many :quotes, dependent: :destroy
  4. has_many :appearances
  5. has_many :seasons, through: :appearances
  6. accepts_nested_attributes_for :trivia, :quotes, :seasons, :appearances
  7. end
RAW Paste Data