Sha256: 0fa210e1a72f4f0bc56cdcdc91dfdee58a8fb21f37994fc3246ae56ea1586879

Contents?: true

Size: 469 Bytes

Versions: 5

Compression:

Stored size: 469 Bytes

Contents

class SorceryResetPassword < <%= migration_class_name %>
  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

5 entries across 5 versions & 1 rubygems

Version Path
sorcery-0.11.0 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.10.3 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.10.2 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.10.1 lib/generators/sorcery/templates/migration/reset_password.rb
sorcery-0.10.0 lib/generators/sorcery/templates/migration/reset_password.rb