Add Authors
mix phx.gen.live Authors Author authors name:string description:text homepage_name:string homepage_url:string
This commit is contained in:
14
priv/repo/migrations/20221226154920_create_authors.exs
Normal file
14
priv/repo/migrations/20221226154920_create_authors.exs
Normal file
@ -0,0 +1,14 @@
|
||||
defmodule Outlook.Repo.Migrations.CreateAuthors do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:authors) do
|
||||
add :name, :string
|
||||
add :description, :text
|
||||
add :homepage_name, :string
|
||||
add :homepage_url, :string
|
||||
|
||||
timestamps()
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user