Sha256: d2178182cf458387150e9da8de3dc21b09d3d1b895f52e4b066e80a545789c8f

Contents?: true

Size: 244 Bytes

Versions: 5

Compression:

Stored size: 244 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

5 entries across 5 versions & 1 rubygems

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