remove timestamp and guid from channels_notes table
This commit is contained in:
parent
13d1a67a0e
commit
370bdfe99d
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue