Edit

kmx.io/kmxgit/priv/repo/migrations/20220617110054_slug_.exs

Branch :

  • priv/repo/migrations/20220617110054_slug_.exs
  • defmodule Kmxgit.Repo.Migrations.Slug do
      use Ecto.Migration
    
      def change do
        alter table(:organisations) do
          add :slug_, :citext
        end
        alter table(:users) do
          add :slug_, :citext
        end
        alter table(:slugs) do
          modify :slug, :citext, null: false
        end
      end
    end