Skip to content

Commit

Permalink
add number to episodes
Browse files Browse the repository at this point in the history
in order to find the latest episode
  • Loading branch information
electronicbites committed Dec 24, 2023
1 parent 6859e08 commit 570c922
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/radiator/podcast/episode.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ defmodule Radiator.Podcast.Episode do

schema "episodes" do
field :title, :string
field :number, :integer
belongs_to :show, Show
timestamps(type: :utc_datetime)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
defmodule Radiator.Repo.Migrations.AddNumberToEpisodes do
use Ecto.Migration

def change do
alter table(:episodes) do
add :number, :integer
end
end
end

0 comments on commit 570c922

Please sign in to comment.