Sha256: bec45749065b7654d176be6fc73b716408e1d84ab94056714291f7dfee6f4faf

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

class SorceryRememberMe < <%= migration_class_name %>
  def change
    add_column :<%= tableized_model_class %>, :remember_me_token, :string, default: nil
    add_column :<%= tableized_model_class %>, :remember_me_token_expires_at, :datetime, default: nil

    add_index :<%= tableized_model_class %>, :remember_me_token
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sorcery-0.17.0 lib/generators/sorcery/templates/migration/remember_me.rb
sorcery-0.16.5 lib/generators/sorcery/templates/migration/remember_me.rb
sorcery-0.16.4 lib/generators/sorcery/templates/migration/remember_me.rb
sorcery-0.16.3 lib/generators/sorcery/templates/migration/remember_me.rb
sorcery-0.16.2 lib/generators/sorcery/templates/migration/remember_me.rb
sorcery-0.16.1 lib/generators/sorcery/templates/migration/remember_me.rb
sorcery-0.16.0 lib/generators/sorcery/templates/migration/remember_me.rb