Sha256: 393e639d16954fbf8dd2175d0893b1007fff3caba745767fd03a7dd4157a740e

Contents?: true

Size: 740 Bytes

Versions: 7

Compression:

Stored size: 740 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change
    create_table(:users) do |t|
      t.string :first_name
      t.string :last_name
      t.boolean :deleted, :null => false, :default => false
      
      t.database_authenticatable :null => false
      t.recoverable
      t.rememberable
      t.trackable

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


      t.timestamps
    end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
contour-0.8.3 test/dummy/db/migrate/20111203203123_create_users.rb
contour-0.8.2 test/dummy/db/migrate/20111203203123_create_users.rb
contour-0.8.1 test/dummy/db/migrate/20111203203123_create_users.rb
contour-0.8.0 test/dummy/db/migrate/20111203203123_create_users.rb
contour-0.7.2 test/dummy/db/migrate/20111203203123_create_users.rb
contour-0.7.1 test/dummy/db/migrate/20111203203123_create_users.rb
contour-0.7.0 test/dummy/db/migrate/20111203203123_create_users.rb