Current section
Files
Jump to
Current section
Files
lib/live_sync/migration.ex
defmodule LiveSync.Migration do
@moduledoc false
use Ecto.Migration
def up(tables) do
execute("CREATE PUBLICATION live_sync FOR TABLE #{Enum.join(tables, ", ")};")
end
def up do
execute("CREATE PUBLICATION live_sync FOR ALL TABLES;")
end
def down do
execute("DROP PUBLICATION live_sync;")
end
end