Sha256: a044f5c58bf2dbb835407f1db346433e0b57a4595c7d748b51ffc9cb2698418f

Contents?: true

Size: 677 Bytes

Versions: 16

Compression:

Stored size: 677 Bytes

Contents

class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration
  def self.up
    create_table(:<%= table_name %>) do |t|
      t.authenticatable :encryptor => :sha1, :null => false
      t.confirmable
      t.recoverable
      t.rememberable
      t.trackable
      # t.lockable

      t.timestamps
    end

    add_index :<%= table_name %>, :email,                :unique => true
    add_index :<%= table_name %>, :confirmation_token,   :unique => true
    add_index :<%= table_name %>, :reset_password_token, :unique => true
    # add_index :<%= table_name %>, :unlock_token,         :unique => true
  end

  def self.down
    drop_table :<%= table_name %>
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
mongoid-devise-1.0.1 generators/devise/templates/migration.rb
devise-1.0.5 generators/devise/templates/migration.rb
devise-1.0.4 generators/devise/templates/migration.rb
devise-1.1.pre4 lib/generators/devise/templates/migration.rb
devise-1.1.pre3 lib/generators/devise/templates/migration.rb
devise-1.0.3 generators/devise/templates/migration.rb
devise-1.1.pre2 lib/generators/devise/templates/migration.rb
glennr-devise-1.0.1.1 generators/devise/templates/migration.rb
glennr-devise-1.0.1 generators/devise/templates/migration.rb
devise-1.0.2 generators/devise/templates/migration.rb
devise-1.1.pre lib/generators/devise/templates/migration.rb
devise-1.0.1 generators/devise/templates/migration.rb
devise-1.0.0 generators/devise/templates/migration.rb
devise-0.9.2 generators/devise/templates/migration.rb
devise-0.9.1 generators/devise/templates/migration.rb
devise-0.9.0 generators/devise/templates/migration.rb