Hash :
7d4e6756
Author :
Thomas de Grivel
Date :
2021-11-18T23:06:28
defmodule Kmxgit.Repo.Migrations.CreateRepositories do
use Ecto.Migration
def change do
create table(:repositories) do
add :slug, :string, unique: true
add :description, :string
add :organisation_id, references(:organisations), null: true
add :user_id, references(:users), null: true
timestamps()
end
create index(:repositories, ["(lower(slug))"], unique: true)
end
end