aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/citation.rb
blob: cee3d181738b6cbcb17cf8843a21c231807e8845 (plain) (blame)
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