README.rdoc in composite_primary_keys-5.0.4 vs README.rdoc in composite_primary_keys-5.0.5
- old
+ new
@@ -24,11 +24,13 @@
set_primary_keys :id, :updated_at
end
FactoryGirl.define do
factory :model_with_composite_keys do
- sequence( :id ) { |n| [n,Time.now] }
- name "Brett"
+ sequence( :id ) { |n| [n,Time.now] }
+ name "Brett"
+ end
+ end
It even supports composite foreign keys for associations.
See http://compositekeys.rubyforge.org for more.