Sha256: 24a845fa775d017d2d374ea20aeafbca466d9cc99cd18c47892ba56561b4210b

Contents?: true

Size: 444 Bytes

Versions: 7

Compression:

Stored size: 444 Bytes

Contents

class SorceryUserActivation < <%= migration_class_name %>
  def change
    add_column :<%= model_class_name.tableize %>, :activation_state, :string, :default => nil
    add_column :<%= model_class_name.tableize %>, :activation_token, :string, :default => nil
    add_column :<%= model_class_name.tableize %>, :activation_token_expires_at, :datetime, :default => nil

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

Version data entries

7 entries across 7 versions & 1 rubygems

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