tarakan/priv/repo/migrations/20260712090529_create_registry_shouts.exs
Maxfield Luke af6077b9c3
All checks were successful
CI and deploy / Test (push) Successful in 4m52s
CI and deploy / Deploy production (push) Successful in 23s
Initial commit on Forgejo
Fresh repository history for elektrine/tarakan hosted at
https://git.elektrine.com/elektrine/tarakan.
2026-07-29 04:43:40 -04:00

18 lines
592 B
Elixir

defmodule Tarakan.Repo.Migrations.CreateRegistryShouts do
use Ecto.Migration
def change do
create table(:registry_shouts) do
add :body, :string, null: false, size: 280
add :account_id, references(:accounts, on_delete: :restrict), null: false
add :removed_at, :utc_datetime_usec
add :removed_reason, :string, size: 100
add :removed_by_id, references(:accounts, on_delete: :nilify_all)
timestamps(type: :utc_datetime_usec)
end
create index(:registry_shouts, [:inserted_at, :id])
create index(:registry_shouts, [:account_id])
end
end