Sha256: 5b1c9cf51105a50d02f62767b4f61f2cd0725670109d8794d4528dfc380671fe

Contents?: true

Size: 349 Bytes

Versions: 7

Compression:

Stored size: 349 Bytes

Contents

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

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