Sha256: 02c5192b753edcd49e36d0a82f341dddcbe5a6e40407f038d8af6eb41ac4b33a

Contents?: true

Size: 550 Bytes

Versions: 16

Compression:

Stored size: 550 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, :email
    add_index :users, :remember_token
  end

  def self.down
    drop_table :users
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
clearance_http_auth-0.3.0 test/dummy/db/migrate/20101221153914_clearance_create_users.rb
clearance_http_auth-0.2.0 test/dummy/db/migrate/20101221153914_clearance_create_users.rb
clearance-0.10.1 spec/rails_root/vendor/db/migrate/20101220184900_clearance_create_users.rb
clearance_http_auth-0.1.0 test/dummy/db/migrate/20101221153914_clearance_create_users.rb
clearance_http_auth-0.0.1 test/dummy/db/migrate/20101221153914_clearance_create_users.rb
janova-clearance-0.9.1 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.9.1 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.9.0.rc9 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.9.0.rc8 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.9.0.rc7 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.9.0.rc6 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.9.0.rc5 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.9.0.rc4 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.9.0.rc3 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.9.0.rc2 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.9.0.rc1 lib/rails/generators/clearance_templates/migrations/create_users.rb