blob: dac86b7805ddbe77532e68e521339c14c60ee056 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
defmodule Pleroma.Repo.Migrations.CreateRegistrations do
use Ecto.Migration
def change do
create table(:registrations) do
add :user_id, references(:users, type: :uuid, on_delete: :delete_all)
add :provider, :string
add :uid, :string
add :info, :map, default: %{}
timestamps()
end
create unique_index(:registrations, [:provider, :uid])
end
end
|