Ecto.Migration.create
You're seeing just the macro
create
, go back to Ecto.Migration module for more information.
Creates a table.
By default, the table will also include an :id
primary key field that
has a type of :bigserial
. Check the table/2
docs for more information.
Examples
create table(:posts) do
add :title, :string, default: "Untitled"
add :body, :text
timestamps()
end