Browse Source

fix: cast note_id for migration

main
Inhji Y. 8 months ago
parent
commit
4cdde21380
  1. 2
      lib/mirage/links/link.ex

2
lib/mirage/links/link.ex

@ -13,7 +13,7 @@ defmodule Mirage.Links.Link do
@doc false
def changeset(link, attrs) do
link
|> cast(attrs, [:title, :url])
|> cast(attrs, [:title, :url, :note_id])
|> validate_required([:url])
end
end

Loading…
Cancel
Save