]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/composite_primary_keys-1.1.0/test/fixtures/hack.rb
Freezing composite primary key so that we can apply TomH's patch to it, and that...
[rails.git] / vendor / gems / composite_primary_keys-1.1.0 / test / fixtures / hack.rb
diff --git a/vendor/gems/composite_primary_keys-1.1.0/test/fixtures/hack.rb b/vendor/gems/composite_primary_keys-1.1.0/test/fixtures/hack.rb
new file mode 100644 (file)
index 0000000..71d6cac
--- /dev/null
@@ -0,0 +1,6 @@
+class Hack < ActiveRecord::Base
+  set_primary_keys :name
+  has_many :comments, :as => :person
+  
+  has_one :first_comment, :as => :person, :class_name => "Comment"
+end
\ No newline at end of file