Sha256: bc329bb342e008e311f10349bcb7550701476e4b6b6c4e4c0f44159f525849dc

Contents?: true

Size: 218 Bytes

Versions: 5

Compression:

Stored size: 218 Bytes

Contents

# frozen_string_literal: true

class Toy < ActiveRecord::Base
  self.primary_key = :toy_id
  belongs_to :pet

  has_many :sponsors, as: :sponsorable, inverse_of: :sponsorable

  scope :with_pet, -> { joins(:pet) }
end

Version data entries

5 entries across 5 versions & 1 rubygems

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