Sha256: b48c59978faa6bec7c6eaf18a720c46df5e3c025625637940ae78daff178097d

Contents?: true

Size: 152 Bytes

Versions: 2

Compression:

Stored size: 152 Bytes

Contents

class Owner < ActiveRecord::Base
  self.primary_key = :owner_id
  has_many :pets, -> { order 'pets.name desc' }
  has_many :toys, :through => :pets
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord-nuodb-adapter-1.1 test/models/owner.rb
activerecord-nuodb-adapter-1.0.4 test/models/owner.rb