Sha256: 26cef466ab31cf775a18e6dac5e7c6a6820322ce084a83747da20fc22ca44093

Contents?: true

Size: 255 Bytes

Versions: 37

Compression:

Stored size: 255 Bytes

Contents

class Pirate < ActiveRecord::Base
  belongs_to :parrot
  has_and_belongs_to_many :parrots
  has_many :treasures, :as => :looter

  has_many :treasure_estimates, :through => :treasures, :source => :price_estimates

  validates_presence_of :catchphrase
end

Version data entries

37 entries across 36 versions & 12 rubygems

Version Path
relevance-castronaut-0.7.5 vendor/activerecord/test/models/pirate.rb
radiant-0.7.2 vendor/rails/activerecord/test/models/pirate.rb
vibes-bj-1.2.2 spec/rails_root/vendor/rails/activerecord/test/models/pirate.rb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/activerecord/test/models/pirate.rb
nbudin-castronaut-0.7.5 vendor/activerecord/test/models/pirate.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.2.2/test/models/pirate.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/test/models/pirate.rb
factorylabs-castronaut-0.7.5 vendor/activerecord/test/models/pirate.rb
activerecord-2.2.3 test/models/pirate.rb
activerecord-2.1.0 test/models/pirate.rb
activerecord-2.2.2 test/models/pirate.rb
activerecord-2.1.2 test/models/pirate.rb
activerecord-2.1.1 test/models/pirate.rb
antfarm-0.3.0 rails/vendor/rails/activerecord/test/models/pirate.rb
antfarm-0.4.0 rails/vendor/rails/activerecord/test/models/pirate.rb
radiant-0.7.0 vendor/rails/activerecord/test/models/pirate.rb
radiant-0.7.1 vendor/rails/activerecord/test/models/pirate.rb