-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify Coherence migration because we have most of these fields alrea…
…dy. [#70]
- Loading branch information
Showing
1 changed file
with
1 addition
and
22 deletions.
There are no files selected for viewing
23 changes: 1 addition & 22 deletions
23
phoenix/contraq/priv/repo/migrations/20180227052552_create_coherence_user.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,6 @@ | ||
defmodule Contraq.Repo.Migrations.CreateCoherenceUser do | ||
use Ecto.Migration | ||
def change do | ||
create table(:users) do | ||
|
||
add :name, :string | ||
add :email, :string | ||
# trackable | ||
add :sign_in_count, :integer, default: 0 | ||
add :current_sign_in_at, :utc_datetime | ||
add :last_sign_in_at, :utc_datetime | ||
add :current_sign_in_ip, :string | ||
add :last_sign_in_ip, :string | ||
# rememberable | ||
add :remember_created_at, :utc_datetime | ||
# recoverable | ||
add :reset_password_token, :string | ||
add :reset_password_sent_at, :utc_datetime | ||
# authenticatable | ||
add :password_hash, :string | ||
|
||
timestamps() | ||
end | ||
create unique_index(:users, [:email]) | ||
|
||
rename table(:users), :encrypted_password, to: :password_hash | ||
end | ||
end |