Sha256: d42c6d7b52a895133d00de3424f983bf97414a9fd9a1d4db012b64eb01c25cb7

Contents?: true

Size: 599 Bytes

Versions: 17

Compression:

Stored size: 599 Bytes

Contents

class ClearanceCreateUsers < 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   :confirmation_token, :limit => 128
      t.string   :remember_token,     :limit => 128
      t.boolean  :email_confirmed, :default => false, :null => false
      t.timestamps
    end

    add_index :users, [:id, :confirmation_token]
    add_index :users, :email
    add_index :users, :remember_token
  end

  def self.down
    drop_table :users
  end
end

Version data entries

17 entries across 13 versions & 5 rubygems

Version Path
thoughtbot-clearance-0.8.1 generators/clearance/templates/migrations/create_users.rb
thoughtbot-clearance-0.8.2 generators/clearance/templates/migrations/create_users.rb
janova-clearance-0.8.8 generators/clearance/templates/migrations/create_users.rb
forgetful-clearance-0.8.11 generators/clearance/templates/migrations/create_users.rb
forgetful-clearance-0.8.10 generators/clearance/templates/migrations/create_users.rb
benaldred-clearance-0.8.8 generators/clearance/templates/migrations/create_users.rb
clearance-0.8.8 test/rails_root/db/migrate/20100225210436_clearance_create_users.rb
clearance-0.8.8 generators/clearance/templates/migrations/create_users.rb
clearance-0.8.7 test/rails_root/db/migrate/20100221200020_clearance_create_users.rb
clearance-0.8.7 generators/clearance/templates/migrations/create_users.rb
clearance-0.8.6 generators/clearance/templates/migrations/create_users.rb
clearance-0.8.6 test/rails_root/db/migrate/20100217171349_clearance_create_users.rb
clearance-0.8.5 test/rails_root/db/migrate/20100120045223_clearance_create_users.rb
clearance-0.8.5 generators/clearance/templates/migrations/create_users.rb
clearance-0.8.4 generators/clearance/templates/migrations/create_users.rb
clearance-0.8.3 generators/clearance/templates/migrations/create_users.rb
clearance-0.8.2 generators/clearance/templates/migrations/create_users.rb