Sha256: d0d66f8a71f186a04839efed5cc9d1bf9bcdd4175e74c980f46b435c8407e23e

Contents?: true

Size: 167 Bytes

Versions: 58

Compression:

Stored size: 167 Bytes

Contents

class Hack < ActiveRecord::Base
  set_primary_keys :name
  has_many :comments, :as => :person
  
  has_one :first_comment, :as => :person, :class_name => "Comment"
end

Version data entries

58 entries across 58 versions & 5 rubygems

Version Path
composite_primary_keys-1.0.3 test/fixtures/hack.rb
composite_primary_keys-1.0.10 test/fixtures/hack.rb
composite_primary_keys-1.0.1 test/fixtures/hack.rb
composite_primary_keys-0.9.93 test/fixtures/hack.rb
composite_primary_keys-0.9.91 test/fixtures/hack.rb
composite_primary_keys-0.9.90 test/fixtures/hack.rb
composite_primary_keys-0.9.0 test/fixtures/hack.rb
composite_primary_keys-1.0.2 test/fixtures/hack.rb
composite_primary_keys-0.9.92 test/fixtures/hack.rb
composite_primary_keys-2.2.1 test/fixtures/hack.rb
composite_primary_keys-2.2.0 test/fixtures/hack.rb
composite_primary_keys-1.0.7 test/fixtures/hack.rb
composite_primary_keys-1.0.6 test/fixtures/hack.rb
composite_primary_keys-1.0.4 test/fixtures/hack.rb
composite_primary_keys-1.1.0 test/fixtures/hack.rb
composite_primary_keys-2.2.2 test/fixtures/hack.rb
composite_primary_keys-1.0.8 test/fixtures/hack.rb
composite_primary_keys-1.0.5 test/fixtures/hack.rb