ash_postgres/priv/test_repo/migrations/20201028042738_migrate_resources2.exs

20 lines
560 B
Elixir
Raw Normal View History

2020-10-29 15:26:45 +13:00
defmodule AshPostgres.TestRepo.Migrations.MigrateResources2 do
@moduledoc """
Updates resources based on their most recent snapshots.
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
def up() do
create table(:multitenant_orgs, primary_key: false) do
add(:id, :binary_id, null: true, default: fragment("uuid_generate_v4()"), primary_key: true)
add(:name, :text, null: true, default: nil, primary_key: false)
end
end
def down() do
drop(table("multitenant_orgs"))
end
end