Sha256: cf9452ab58deda4800614205f6f1baf008ec4ce1a1e374c3a18033ff25538558

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.timestamps
      t.string :login, :null => false
      t.string :crypted_password
      t.string :password_salt
      t.string :remember_token
      t.string :first_name
      t.string :last_name
      t.integer :login_count, :null => false, :default => 0
      t.datetime :last_request_at
      t.integer :profile_views, :null => false, :default => 0
    end
  end

  def self.down
    drop_table :users
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
authlogic-0.10.4 test_app/db/migrate/20081023040052_create_users.rb
authgasm-0.10.3 test_app/db/migrate/20081023040052_create_users.rb