How i cant inspect value of column have uuid type

i can’t determine type of column so that i wana inspect it but have error with it

    (UndefinedFunctionError) function :uuid.type/0 is undefined (module :uuid is not available)

this is type of it in migration

    alter table(:adsets) do
      add :rule_ids, {:array, :uuid}
    end

please help me, how i can determine its type to change value on it !!

For UUIDs, in migrations we set them as {:array, :uuid} but in schemas they need to be e.g.: field :rule_ids, {:array, Ecto.UUID}.

For more information, see: https://hexdocs.pm/ecto/Ecto.Schema.html#module-types-and-casting

2 Likes

Thank you verry much. it’s ok :smiley: