defmodule RemoteRetro.Repo.Migrations.CreateUser do
  use Ecto.Migration

  def change do
    create table(:users) do
      add :email, :string
      add :google_user_info, :jsonb
      add :family_name, :string
      add :given_name, :string
      add :locale, :string
      add :name, :string
      add :picture, :string
      add :profile, :string
      add :last_login, :datetime

      timestamps()
    end

    create unique_index(:users, [:email])
  end
end

defmodule RemoteRetro.Repo.Migrations.CreateUser do
  use Ecto.Migration

  def change do
    create table(:users) do
      add :email, :string, null: false
      add :google_user_info, :jsonb, null: false
      add :family_name, :string, null: false
      add :given_name, :string, null: false
      add :locale, :string, null: false
      add :name, :string, null: false
      add :picture, :string, null: false
      add :last_login, :datetime, null: false
      add :profile, :string

      timestamps()
    end

    create unique_index(:users, [:email])
  end
end

Enforce non-null constraints for user data
Enforce non-null constraints for user data

stride-nyc/remote_retro,samdec11/remote_retro,tnewell5/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro