feat: calculate member.email from user.email
This commit is contained in:
parent
0be9bb7cea
commit
b7f0060358
5 changed files with 300 additions and 10 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue