Skip to content

Commit

Permalink
Modify Coherence migration because we have most of these fields alrea…
Browse files Browse the repository at this point in the history
…dy. [#70]
  • Loading branch information
marnen committed Feb 27, 2018
1 parent d9f80af commit 6575a98
Showing 1 changed file with 1 addition and 22 deletions.
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

0 comments on commit 6575a98

Please sign in to comment.