Ecto.Migration Types with mapping

Is there any good list of what types can be used in ecto migrations, and what types to use then in schema?

In @moduledoc in https://github.com/elixir-ecto/ecto/blob/master/lib/ecto/schema.ex which you also can get, but preeety printed from iex h Ecto.Schema I guess it’s better start then nothing :wink: And schema uses same types as migration do I think.

https://hexdocs.pm/ecto/Ecto.Migration.html Scroll down a bit from the top.

Where can I find a list over supported DB/Ecto/Models data types answers the second half of your question.

2 Likes

Hey, in that response is what you exactly get (content wise, not formatting :stuck_out_tongue:) when you enter h Ecto.Schema into IEX :slight_smile: It’s one of many great things about Elixir and philosophy behind it :slight_smile: