15 lines
310 B
Elixir
15 lines
310 B
Elixir
defmodule Wild.Repo.Migrations.CreateAuthors do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:authors) do
|
|
add :name, :string
|
|
add :country, :string
|
|
add :bio, :string
|
|
add :year_born, :string
|
|
add :year_died, :string
|
|
|
|
timestamps(type: :utc_datetime)
|
|
end
|
|
end
|
|
end
|