Sha256: ea04bbba0bf6df41ddcb39d17ecbddb3adbe2ca731a72cc4e2fa3f2289ffd6da

Contents?: true

Size: 464 Bytes

Versions: 6

Compression:

Stored size: 464 Bytes

Contents

class SorceryResetPassword < ActiveRecord::Migration
  def change
    add_column :<%= model_class_name.tableize %>, :reset_password_token, :string, :default => nil
    add_column :<%= model_class_name.tableize %>, :reset_password_token_expires_at, :datetime, :default => nil
    add_column :<%= model_class_name.tableize %>, :reset_password_email_sent_at, :datetime, :default => nil

    add_index :<%= model_class_name.tableize %>, :reset_password_token
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
sorcery-0.9.1 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.9.0 lib/generators/sorcery/templates/migration/reset_password.rb
cbsorcery-0.8.6 lib/generators/sorcery/templates/migration/reset_password.rb
cb-sorcery-0.8.6 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.8.6 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.8.5 lib/generators/sorcery/templates/migration/reset_password.rb