chiya/priv/repo/migrations/20230305161354_create_channels.exs
2023-03-05 18:09:09 +01:00

16 lines
309 B
Elixir

defmodule Chiya.Repo.Migrations.CreateChannels do
use Ecto.Migration
def change do
create table(:channels) do
add :name, :string
add :content, :text
add :visibility, :string
add :slug, :string
timestamps()
end
create unique_index(:channels, [:slug])
end
end