module DevisePasswordExpirable::Schema
add schema helper for migrations
Public Instance Methods
password_expirable()
click to toggle source
Add last_password_reset columns in the resource's database table.
Examples
# For a new resource migration: create_table :the_resources do |t|
t.password_expirable
… end
# or if the resource's table already exists, define a migration and put this in: change_table :the_resources do |t|
t.datetime :last_password_reset
end
# File lib/devise_password_expirable/schema.rb, line 19 def password_expirable apply_devise_schema :last_password_reset, DateTime end