Remove joined_rooms table

This commit is contained in:
Pim Kunis 2021-09-08 14:22:40 +02:00
parent 46b4199618
commit b12872fe2c
5 changed files with 23 additions and 74 deletions

View file

@ -17,14 +17,6 @@ defmodule Architex.Repo.Migrations.CreateInitialTables do
add :visibility, :string, null: false, default: "public"
end
create table(:joined_rooms, primary_key: false) do
add :account_id, references(:accounts), primary_key: true, null: false
add :room_id, references(:rooms, type: :string),
primary_key: true,
null: false
end
create table(:events, primary_key: false) do
add :nid, :serial, primary_key: true
add :id, :string, null: false