1 2 3 4 5 6
# frozen_string_literal: true class Citation < ActiveRecord::Base belongs_to :reference_of, class_name: "Book", foreign_key: :book2_id has_many :citations end