Sha256: 98a93f5211d7b2965f1488cef8d2d3a0214608b7e34f487b25816cf23e95ba54

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :username,               :null => false
      t.string :email
      t.string :crypted_password
      t.string :first_name
      t.string :last_name
      t.integer :login_count,            :null => false, :default => 0
      t.integer :failed_login_count,     :null => false, :default => 0
      t.datetime :last_request_at
      t.datetime :current_login_at
      t.datetime :last_login_at
      t.string :current_login_ip
      t.string :last_login_ip

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alberich-0.2.0 test/dummy/db/migrate/20120801010101_create_users.rb