Sha256: 692a9cac6246d1185307b80571711a554427215c40c5254b6849729c079a39d9

Contents?: true

Size: 481 Bytes

Versions: 4

Compression:

Stored size: 481 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.timestamps
    end

    add_index :users, :email
    add_index :users, :remember_token
  end

  def self.down
    drop_table :users
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
clearance-0.10.1 lib/rails/generators/clearance_templates/migrations/create_users.rb
clearance-0.10.1 spec/rails_root/db/migrate/20110209234521_clearance_create_users.rb
clearance-0.10.1 test/rails_root/db/migrate/20110209234101_clearance_create_users.rb
clearance-0.10.0 lib/rails/generators/clearance_templates/migrations/create_users.rb