Browse Source

feat: remove timestamps from join tables

main
Inhji Y. 8 months ago
parent
commit
98990ba3bf
  1. 24
      priv/repo/migrations/20210210184450_remove_timestamps_from_join_tables.exs

24
priv/repo/migrations/20210210184450_remove_timestamps_from_join_tables.exs

@ -1,17 +1,17 @@
defmodule Mirage.Repo.Migrations.RemoveTimestampsFromJoinTables do
use Ecto.Migration
use Ecto.Migration
def change do
alter table(:notes_topics) do
remove :inserted_at
remove :updated_at
end
def change do
alter table(:notes_topics) do
remove :inserted_at
remove :updated_at
end
alter table(:note_links) do
remove :inserted_at
remove :updated_at
end
alter table(:note_links) do
remove :inserted_at
remove :updated_at
end
rename table(:note_links), to: table(:notes_links)
end
rename table(:note_links), to: table(:notes_links)
end
end

Loading…
Cancel
Save