feat: calculate member.email from user.email

This commit is contained in:
Moritz 2025-08-05 16:51:39 +02:00
parent 0be9bb7cea
commit b7f0060358
Signed by: moritz
GPG key ID: 1020A035E5DD0824
5 changed files with 300 additions and 10 deletions

View file

@ -0,0 +1,25 @@
defmodule Mv.Repo.Migrations.AddMemberEmailToMembers do
@moduledoc """
Updates resources based on their most recent snapshots.
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
def up do
rename table(:members), :email, to: :member_email
alter table(:members) do
modify :member_email, :text, null: true
end
end
def down do
alter table(:members) do
modify :email, :text, null: false
end
rename table(:members), :member_email, to: :email
end
end