Sha256: 645e1d3483e26b3dd732a5d077b033b7ee9ad956130cfb7a0a6f0ff2d9dc4d2c

Contents?: true

Size: 781 Bytes

Versions: 1

Compression:

Stored size: 781 Bytes

Contents

class DeviseCreateMessagingUsers < ActiveRecord::Migration
  def change
    create_table(:messaging_users) do |t|
      t.database_authenticatable :null => false
      t.recoverable
      t.rememberable
      t.trackable

      # t.encryptable
      # t.confirmable
      # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
      # t.token_authenticatable


      t.timestamps
    end

    add_index :messaging_users, :email,                :unique => true
    add_index :messaging_users, :reset_password_token, :unique => true
    # add_index :messaging_users, :confirmation_token,   :unique => true
    # add_index :messaging_users, :unlock_token,         :unique => true
    # add_index :messaging_users, :authentication_token, :unique => true
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
messaging_4-0.0.1 test/dummy/db/migrate/20111213052240_devise_create_messaging_users.rb