]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/relation_member.rb
Merge remote-tracking branch 'upstream/pull/4927'
[rails.git] / test / factories / relation_member.rb
index 4357f3de7eb873dfca2aa1a6608d20a6a10c5d0e..f8e14905e36cd805b9eab2f86607ab81f8857c3b 100644 (file)
@@ -1,9 +1,10 @@
 FactoryBot.define do
   factory :relation_member do
-    member_role ""
+    sequence(:sequence_id)
+    member_role { "" }
 
     relation
     # Default to creating nodes, but could be ways or relations as members
-    association :member, :factory => :node
+    member :factory => :node
   end
 end