Sha256: 852d773f9886838513bf10babd45629df1a9b35af4c941a5a3d871b962fc4747

Contents?: true

Size: 251 Bytes

Versions: 4

Compression:

Stored size: 251 Bytes

Contents

# frozen_string_literal: true

class Citation < ActiveRecord::Base
  belongs_to :book, foreign_key: :book1_id, inverse_of: :citations, touch: true
  belongs_to :reference_of, class_name: "Book", foreign_key: :book2_id
  has_many :citations
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/models/citation.rb
ibm_db-5.4.1-x86-mingw32 test/models/citation.rb
ibm_db-5.4.0-x86-mingw32 test/models/citation.rb
ibm_db-5.3.2-x86-mingw32 test/models/citation.rb