get started on route for creating links, dividing steps into components
This commit is contained in:
15
priv/repo/migrations/20210819214328_create_links.exs
Normal file
15
priv/repo/migrations/20210819214328_create_links.exs
Normal file
@@ -0,0 +1,15 @@
|
||||
defmodule Entendu.Repo.Migrations.CreateLinks do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:links, primary_key: false) do
|
||||
add :id, :binary_id, primary_key: true
|
||||
add :expires, :utc_datetime
|
||||
add :burn_after_reading, :boolean, default: false, null: false
|
||||
add :content, :text
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user