Sha256: 1b70df1c6331bef76db83b4e6df4fc2ddb9be240abf40f15e2696a3099e1a1af

Contents?: true

Size: 1016 Bytes

Versions: 41

Compression:

Stored size: 1016 Bytes

Contents

# -*- mode: ruby -*-
# vi: set ft=ruby :
create_table 'users', force: :cascade do |t|
  t.string 'email'
  t.string 'password_digest', null: false, default: ''
  
  ## Recoverable
  t.string   :reset_password_token
  t.datetime :reset_password_sent_at

  ## Rememberable
  t.datetime :remember_created_at

  ## Trackable
  t.integer  :sign_in_count, default: 0, null: false
  t.datetime :current_sign_in_at
  t.datetime :last_sign_in_at
  t.string   :current_sign_in_ip
  t.string   :last_sign_in_ip
  t.string   :uid
  
  ## Confirmable
  # t.string   :confirmation_token
  # t.datetime :confirmed_at
  # t.datetime :confirmation_sent_at
  # t.string   :unconfirmed_email # Only if using reconfirmable

  ## Lockable
  # t.integer  :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
  # t.string   :unlock_token # Only if unlock strategy is :email or :both
  # t.datetime :locked_at
  
  t.timestamps

  t.index :reset_password_token, unique: true
  t.index :uid, unique: true
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
ibrain-auth-0.3.1 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.2.9 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.2.8 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.2.7 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.2.6 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.2.5 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.2.4 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.2.3 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.2.2 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.2.1 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.2.0 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.1.9 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.1.8 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.1.7 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.1.6 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.1.5 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.1.4 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.1.3 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.1.2 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.1.1 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb