]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/changesets.rb
Teach database structure normalise to ignore btree_gist comment
[rails.git] / test / factories / changesets.rb
index f42242e786a1c343e611e2411148ccd530fc0097..d4ebdcee133d8811822db1f8974e8f13066f3b27 100644 (file)
@@ -1,13 +1,13 @@
 FactoryBot.define do
   factory :changeset do
-    created_at Time.now.utc
-    closed_at Time.now.utc + 1.day
+    created_at { Time.now.utc }
+    closed_at { Time.now.utc + 1.day }
 
     user
 
     trait :closed do
-      created_at Time.now.utc - 5.hours
-      closed_at Time.now.utc - 4.hours
+      created_at { Time.now.utc - 5.hours }
+      closed_at { Time.now.utc - 4.hours }
     end
   end
 end