Sha256: 8a9d2229042209f61acb08ca4af42d4f40e7217156711faeb194cc36251d45d3

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

class AddUsers < ActiveRecord::Migration
  def self.up
    create_table(:users) do |t|
      t.string   :email
      t.string   :encrypted_password, :limit => 128
      t.string   :salt,               :limit => 128
      t.string   :token,              :limit => 128
      t.datetime :token_expires_at
      t.boolean  :email_confirmed, :default => false, :null => false
    end

    add_index :users, [:id, :token]
    add_index :users, :email
    add_index :users, :token    
  end

  def self.down
    drop_table :users  
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jnicklas-courgette-0.0.2 fixture_rails_root/db/migrate/20090720193349_add_users.rb
jnicklas-courgette-0.0.3 fixture_rails_root/db/migrate/20090720193349_add_users.rb