Add featured route
This commit is contained in:
parent
b17e177335
commit
f90a7133bc
8 changed files with 118 additions and 3 deletions
|
@ -4,6 +4,7 @@ defmodule Nulla.Repo.Migrations.CreateNotes do
|
|||
def change do
|
||||
create table(:notes, primary_key: false) do
|
||||
add :id, :bigint, primary_key: true
|
||||
add :ap_id, :string
|
||||
add :inReplyTo, :string
|
||||
add :published, :utc_datetime
|
||||
add :url, :string
|
||||
|
@ -13,6 +14,7 @@ defmodule Nulla.Repo.Migrations.CreateNotes do
|
|||
add :sensitive, :boolean, default: false, null: false
|
||||
add :content, :string
|
||||
add :language, :string
|
||||
add :featured, :boolean, default: false, null: false
|
||||
add :actor_id, references(:actors, on_delete: :delete_all)
|
||||
|
||||
timestamps(type: :utc_datetime)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue