module Devise::Schema
def apply_schema(name, type, options={})
def apply_schema(name, type, options={}) raise NotImplementedError end
def authenticatable(*args)
def authenticatable(*args) ActiveSupport::Deprecation.warn "t.authenticatable in migrations is deprecated. Please use t.database_authenticatable instead.", caller database_authenticatable(*args) end
def confirmable
def confirmable apply_schema :confirmation_token, String apply_schema :confirmed_at, DateTime apply_schema :confirmation_sent_at, DateTime end
def database_authenticatable(options={})
== Options
Creates email, encrypted_password and password_salt.
def database_authenticatable(options={}) null = options[:null] || false default = options[:default] || "" if options.delete(:encryptor) ActiveSupport::Deprecation.warn ":encryptor as option is deprecated, simply remove it." end apply_schema :email, String, :null => null, :default => default apply_schema :encrypted_password, String, :null => null, :default => default, :limit => 128 apply_schema :password_salt, String, :null => null, :default => default end
def lockable
def lockable apply_schema :failed_attempts, Integer, :default => 0 apply_schema :unlock_token, String apply_schema :locked_at, DateTime end
def recoverable
def recoverable apply_schema :reset_password_token, String end
def rememberable
def rememberable apply_schema :remember_token, String apply_schema :remember_created_at, DateTime end
def token_authenticatable
def token_authenticatable apply_schema :authentication_token, String end
def trackable
Creates sign_in_count, current_sign_in_at, last_sign_in_at,
def trackable apply_schema :sign_in_count, Integer, :default => 0 apply_schema :current_sign_in_at, DateTime apply_schema :last_sign_in_at, DateTime apply_schema :current_sign_in_ip, String apply_schema :last_sign_in_ip, String end