Skip to content

Commit

Permalink
Add handling for postgres array types with possibly cloaked array mem…
Browse files Browse the repository at this point in the history
…bers to Migrator
  • Loading branch information
ACBullen committed Sep 14, 2020
1 parent 4b20493 commit 181af3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cloak_ecto/migrator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ defmodule Cloak.Ecto.Migrator do
false
end

defp cloak_field?({_field, {:array, _type}}) do
false
defp cloak_field?({_field, {:array, type}}) do
Code.ensure_loaded?(type) && function_exported?(type, :__cloak__, 0)
end

defp cloak_field?({_field, type}) do
Expand Down

0 comments on commit 181af3a

Please sign in to comment.