Sha256: b56f9261d46a9766f83ab62e7c9cf774f06dc810ac40977e964356cee9bf5e0a

Contents?: true

Size: 769 Bytes

Versions: 3

Compression:

Stored size: 769 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change
    create_table(:users) do |t|
      t.string :first_name
      t.string :last_name
      t.string :status, null: false, default: 'pending'
      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

3 entries across 3 versions & 1 rubygems

Version Path
contour-0.9.1 test/dummy/db/migrate/20111203203123_create_users.rb
contour-0.9.0 test/dummy/db/migrate/20111203203123_create_users.rb
contour-0.8.4 test/dummy/db/migrate/20111203203123_create_users.rb