From f6ce4807aaa2b850f552da29d88d7a3f90dc155e Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Tue, 12 Jan 2021 20:39:10 -0500 Subject: [PATCH] chore: update tests --- test/support/resources/comment.ex | 2 +- test/support/resources/post.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/support/resources/comment.ex b/test/support/resources/comment.ex index 987e4a8..7df1591 100644 --- a/test/support/resources/comment.ex +++ b/test/support/resources/comment.ex @@ -15,7 +15,7 @@ defmodule AshCsv.Test.Comment do end attributes do - attribute(:id, :uuid, primary_key?: true, default: &Ecto.UUID.generate/0) + uuid_primary_key :id attribute(:title, :string) end diff --git a/test/support/resources/post.ex b/test/support/resources/post.ex index fd61b0f..e796080 100644 --- a/test/support/resources/post.ex +++ b/test/support/resources/post.ex @@ -17,7 +17,7 @@ defmodule AshCsv.Test.Post do end attributes do - attribute(:id, :uuid, primary_key?: true, default: &Ecto.UUID.generate/0) + uuid_primary_key true attribute(:title, :string) attribute(:score, :integer) attribute(:public, :boolean)