Created
January 4, 2016 18:07
-
-
Save johnhamelink/8a1ef5896e988e898cdc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| defmodule Api.Repo.Migrations.DeviseCreateSessions do | |
| use Ecto.Migration | |
| def change | |
| create table(:sessions)) do | |
| add :email, :string | |
| add :encrypted_password, :string | |
| add :reset_password_token, :string | |
| add :reset_password_sent_at, :datetime | |
| add :remember_created_at, :datetime | |
| add :sign_in_count, :integer | |
| add :current_sign_in_at, :datetime | |
| add :last_sign_in_at, :datetime | |
| add :current_sign_in_ip, :inet | |
| add :last_sign_in_ip, :inet | |
| add :type, :string | |
| add :facebook_token, :string | |
| add :address, :text | |
| add :postcode, :string | |
| timestamps | |
| end | |
| create index(:sessions, [:email,]) | |
| create index(:sessions, [:reset_password_token,]) | |
| create index(:sessions, [:type]) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment