Sha256: 75f124f633d3b8028364845532c8b6001684f88cfe8b88a9ddbb6ee2098f05e8

Contents?: true

Size: 549 Bytes

Versions: 12

Compression:

Stored size: 549 Bytes

Contents

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

      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
  end

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
devise-0.6.2 generators/devise/templates/migration.rb
devise-0.6.1 generators/devise/templates/migration.rb
devise-0.6.0 generators/devise/templates/migration.rb
devise-0.5.6 generators/devise/templates/migration.rb
devise-0.5.5 generators/devise/templates/migration.rb
devise-0.5.4 generators/devise/templates/migration.rb
devise-0.5.3 generators/devise/templates/migration.rb
devise-0.5.2 generators/devise/templates/migration.rb
devise-0.5.1 generators/devise/templates/migration.rb
devise-0.5.0 generators/devise/templates/migration.rb
shingara-devise-0.4.3.1 generators/devise/templates/migration.rb
shingara-devise-0.4.3 generators/devise/templates/migration.rb