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
its-ruby-auth-0.0.1 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.20 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.19 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.18 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.17 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.16 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.15 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.14 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.13 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.12 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.11 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.10 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.9 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.8 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.7 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.6 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.5 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.4 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.3 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb
ibrain-auth-0.3.2 lib/generators/ibrain/auth/install/templates/db/schemas/users_schema.erb