Add match url
This commit is contained in:
@@ -5,13 +5,14 @@ defmodule LolAnalytics.Match.MatchSchema do
|
||||
schema "match" do
|
||||
field :match_id, :string
|
||||
field :processed, :boolean, default: false
|
||||
field :match_url, :string
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
def changeset(%__MODULE__{} = match, params \\ %{}) do
|
||||
match
|
||||
|> cast(params, [:match_id, :processed])
|
||||
|> cast(params, [:match_id, :processed, :match_url])
|
||||
|> validate_required([:match_id, :processed])
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user