bdd181425b
Docker Compose project with automated Playwright benchmarks comparing django-liveview 2.2.0 against Phoenix LiveView 1.0 across 6 scenarios.
15 lines
365 B
Elixir
15 lines
365 B
Elixir
defmodule Benchmark.Repo.Migrations.CreateAlerts do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:alerts) do
|
|
add :alert_type, :string, null: false, default: "INFO"
|
|
add :description, :string, null: false
|
|
timestamps(type: :utc_datetime)
|
|
end
|
|
|
|
create index(:alerts, [:alert_type])
|
|
create index(:alerts, [:inserted_at])
|
|
end
|
|
end
|