Remove year from records
This commit is contained in:
@@ -13,7 +13,6 @@ defmodule MusicLibrary.Records.Record do
|
|||||||
field :image_url, :string
|
field :image_url, :string
|
||||||
field :image_data, :binary
|
field :image_data, :binary
|
||||||
field :image_data_hash, :string
|
field :image_data_hash, :string
|
||||||
field :year, :integer
|
|
||||||
field :musicbrainz_id, Ecto.UUID
|
field :musicbrainz_id, Ecto.UUID
|
||||||
field :genres, {:array, :string}
|
field :genres, {:array, :string}
|
||||||
field :release, :string
|
field :release, :string
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user