Sha256: adc27801d85826321cd7be5bdb7d15c4f173d30e0f72123104dab3ccd34cddfe

Contents?: true

Size: 295 Bytes

Versions: 39

Compression:

Stored size: 295 Bytes

Contents

class Parrot < ActiveRecord::Base
  set_inheritance_column :parrot_sti_class
  has_and_belongs_to_many :pirates
  has_and_belongs_to_many :treasures
  has_many :loots, :as => :looter
end

class LiveParrot < Parrot
end

class DeadParrot < Parrot
  belongs_to :killer, :class_name => 'Pirate'
end

Version data entries

39 entries across 39 versions & 9 rubygems

Version Path
activerecord-2.0.1 test/fixtures/parrot.rb
activerecord-2.0.4 test/fixtures/parrot.rb
activerecord-2.0.2 test/fixtures/parrot.rb
activerecord-2.0.5 test/fixtures/parrot.rb
activerecord-2.1.2 test/models/parrot.rb
activerecord-2.1.1 test/models/parrot.rb
activerecord-2.1.0 test/models/parrot.rb
antfarm-0.3.0 rails/vendor/rails/activerecord/test/models/parrot.rb
antfarm-0.4.0 rails/vendor/rails/activerecord/test/models/parrot.rb
radiant-0.6.5.1 vendor/rails/activerecord/test/fixtures/parrot.rb
radiant-0.6.5 vendor/rails/activerecord/test/fixtures/parrot.rb
radiant-0.6.7 vendor/rails/activerecord/test/fixtures/parrot.rb
radiant-0.6.6 vendor/rails/activerecord/test/fixtures/parrot.rb
radiant-0.6.9 vendor/rails/activerecord/test/fixtures/parrot.rb
radiant-0.6.8 vendor/rails/activerecord/test/fixtures/parrot.rb
radiant-0.7.0 vendor/rails/activerecord/test/models/parrot.rb
radiant-0.7.1 vendor/rails/activerecord/test/models/parrot.rb
spree-0.0.9 vendor/rails/activerecord/test/fixtures/parrot.rb
spree-0.2.0 vendor/rails/activerecord/test/fixtures/parrot.rb