Packages

Adds helpful extras to Guardian like default mailer support, as well as out of the box controllers and routes

Current section

Files

Jump to
sentinel lib mix templates ueberauth_migration_template.ex
Raw

lib/mix/templates/ueberauth_migration_template.ex

defmodule UeberauthMigrationTemplate do
use Ecto.Migration
def change do
create table(:ueberauths) do
add :provider, :string
add :uid, :string
add :expires_at, :utc_datetime
add :hashed_password, :text
add :hashed_password_reset_token, :text
add :user_id, :integer
timestamps
end
create index(:ueberauths, [:user_id])
end
end