From 96b1b47a4abe286b642d1f185c39f3b6c4b4686e Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 13 Nov 2024 12:04:43 +0000 Subject: [PATCH] Set default for record release_ids --- lib/music_library/records/record.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/music_library/records/record.ex b/lib/music_library/records/record.ex index 91c8b3e0..f8e2b757 100644 --- a/lib/music_library/records/record.ex +++ b/lib/music_library/records/record.ex @@ -19,7 +19,7 @@ defmodule MusicLibrary.Records.Record do field :genres, {:array, :string} field :release, :string field :purchased_at, :utc_datetime - field :release_ids, {:array, :string} + field :release_ids, {:array, :string}, default: [] embeds_many :artists, Artist do field :name, :string