diff --git a/lib/music_library/records/record.ex b/lib/music_library/records/record.ex index 8f4fdbeb..3ef7d123 100644 --- a/lib/music_library/records/record.ex +++ b/lib/music_library/records/record.ex @@ -13,7 +13,6 @@ defmodule MusicLibrary.Records.Record do field :image_url, :string field :image_data, :binary field :image_data_hash, :string - field :year, :integer field :musicbrainz_id, Ecto.UUID field :genres, {:array, :string} field :release, :string diff --git a/priv/repo/migrations/20241002133130_remove_year_from_records.exs b/priv/repo/migrations/20241002133130_remove_year_from_records.exs new file mode 100644 index 00000000..e17ecf9d --- /dev/null +++ b/priv/repo/migrations/20241002133130_remove_year_from_records.exs @@ -0,0 +1,9 @@ +defmodule MusicLibrary.Repo.Migrations.RemoveYearFromRecords do + use Ecto.Migration + + def change do + alter table(:records) do + remove :year + end + end +end