Sha256: 51d130480d30ece4911f72fafc144cd2cb744b80a94285e25ee5dab6ca12bb1f

Contents?: true

Size: 344 Bytes

Versions: 6

Compression:

Stored size: 344 Bytes

Contents

class SorceryRememberMe < ActiveRecord::Migration
  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

6 entries across 6 versions & 3 rubygems

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