Froze rails gems
[depot.git] / vendor / rails / activerecord / test / models / pirate.rb
diff --git a/vendor/rails/activerecord/test/models/pirate.rb b/vendor/rails/activerecord/test/models/pirate.rb
new file mode 100644 (file)
index 0000000..51c8183
--- /dev/null
@@ -0,0 +1,9 @@
+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