3 Commits

  1. 11
      CHANGELOG.md
  2. 3
      lib/mirage/links/link.ex
  3. 2
      mix.exs

11
CHANGELOG.md

@ -5,6 +5,17 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.36.3](https://git.inhji.de/inhji/mirage/compare/v0.36.2...v0.36.3) (2021-02-15)
### Bug Fixes:
* Revert "fix: readd :note_id for migration"
* Revert "fix: cast note_id for migration"
## [v0.36.2](https://git.inhji.de/inhji/mirage/compare/v0.36.1...v0.36.2) (2021-02-15)

3
lib/mirage/links/link.ex

@ -6,7 +6,6 @@ defmodule Mirage.Links.Link do
schema "links" do
field :title, :string
field :url, :string
field :note_id, :integer
many_to_many :note, Note, join_through: "notes_links"
end
@ -14,7 +13,7 @@ defmodule Mirage.Links.Link do
@doc false
def changeset(link, attrs) do
link
|> cast(attrs, [:title, :url, :note_id])
|> cast(attrs, [:title, :url])
|> validate_required([:url])
end
end

2
mix.exs

@ -1,7 +1,7 @@
defmodule Mirage.MixProject do
use Mix.Project
@version "0.36.2"
@version "0.36.3"
def project do
[

Loading…
Cancel
Save