Sha256: 4d7a694cc950e36a86295c1c9bfaa867822adfbcce4be849e343a595684f6cfc

Contents?: true

Size: 869 Bytes

Versions: 12

Compression:

Stored size: 869 Bytes

Contents

class CreateUsersTable < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string     :first_name,       :limit => 40
      t.string     :last_name,        :limit => 40
      t.string     :email,            :limit => 100
      t.string     :homepage
      t.string     :about
      t.string     :signature
      
      t.string     :password_hash,    :limit => 40
      t.string     :password_salt,    :limit => 40
      
      t.string     :ip
      t.string     :agent
      t.string     :referer

      t.string     :remember_me,      :limit => 40
      t.string     :token_key,        :limit => 40
      t.datetime   :token_expiration

      t.boolean    :anonymous,        :default => false

      t.timestamps
      t.datetime   :verified_at
      t.datetime   :deleted_at
    end
  end

  def self.down
    drop_table :users
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
adva-0.2.4 db/migrate/20080402000001_create_users_table.rb
adva-0.2.3 db/migrate/20080402000001_create_users_table.rb
adva-0.2.2 db/migrate/20080402000001_create_users_table.rb
adva-0.2.1 db/migrate/20080402000001_create_users_table.rb
adva-0.2.0 db/migrate/20080402000001_create_users_table.rb
adva-0.1.4 db/migrate/20080402000001_create_users_table.rb
adva-0.1.3 db/migrate/20080402000001_create_users_table.rb
adva-0.1.2 db/migrate/20080402000001_create_users_table.rb
adva-0.1.1 db/migrate/20080402000001_create_users_table.rb
adva-0.1.0 db/migrate/20080402000001_create_users_table.rb
adva_user-0.0.1 db/migrate/20080402000001_create_users_table.rb
adva-0.0.1 adva_user/db/migrate/20080402000001_create_users_table.rb