Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 422 Bytes
defmodule SoftDelete.Repo.Migrations.AddUsers do
use Ecto.Migration
def change do
create table(:users) do
add(:name, :string)
timestamps()
end
execute(
"""
DO $$
BEGIN
PERFORM prepare_table_for_soft_delete('users');
END $$
""",
"""
DO $$
BEGIN
PERFORM reverse_table_soft_delete('users');
END $$
"""
)
end
end
You can’t perform that action at this time.