defmodule Mv.Repo.Migrations.MemberFields 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 alter table(:members) do add :first_name, :text, null: false add :last_name, :text, null: false add :email, :text, null: false add :birth_date, :date add :paid, :boolean add :phone_number, :text add :join_date, :date add :exit_date, :date add :notes, :text add :city, :text add :street, :text add :house_number, :text add :postal_code, :text end end def down do alter table(:members) do remove :postal_code remove :house_number remove :street remove :city remove :notes remove :exit_date remove :join_date remove :phone_number remove :paid remove :birth_date remove :email remove :last_name remove :first_name end end end