Sha256: 035e9c8ded5f0f106167cbcc8a345233eec447d12c6d2902146ca005d0161a80

Contents?: true

Size: 448 Bytes

Versions: 13

Compression:

Stored size: 448 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table(:users) do |t|
      t.string :email
      t.string :crypted_password, :limit => 40
      t.string :salt, :limit => 40
      t.string :remember_token
      t.datetime :remember_token_expires_at
      t.boolean :confirmed, :default => false, :null => false
    end

    add_index :users, [:email, :crypted_password]    
  end

  def self.down
    drop_table :users
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
thoughtbot-clearance-0.2.2 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.2.3 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.2.4 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.2.5 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.2.6 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.2.7 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.2.8 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.2.9 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.3.0 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.3.1 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.3.2 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.3.3 test/rails_root/db/migrate/001_create_users.rb
thoughtbot-clearance-0.3.4 test/rails_root/db/migrate/001_create_users.rb