remove timestamp and guid from channels_notes table

This commit is contained in:
Inhji 2023-03-05 19:52:16 +01:00
parent 13d1a67a0e
commit 370bdfe99d
1 changed files with 1 additions and 3 deletions

View File

@ -2,11 +2,9 @@ defmodule Chiya.Repo.Migrations.CreateChannelsNotes do
use Ecto.Migration
def change do
create table(:channels_notes) do
create table(:channels_notes, primary_key: false) do
add :channel, references(:channels, on_delete: :nothing)
add :note, references(:notes, on_delete: :nothing)
timestamps()
end
create index(:channels_notes, [:channel])