Sha256: feda11ed89f5f13aa8d63193a80963d2f87372cf620b08e7ac093b487179eaf0

Contents?: true

Size: 471 Bytes

Versions: 9

Compression:

Stored size: 471 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users  do |t|
      t.timestamps :null => false
      t.string :email, :null => false
      t.string :encrypted_password, :limit => 128, :null => false
      t.string :confirmation_token, :limit => 128
      t.string :remember_token, :limit => 128, :null => false
    end

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

  def self.down
    drop_table :users
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
clearance-1.2.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.1.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.0.1 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.0.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.0.0.rc8 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.0.0.rc7 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.0.0.rc6 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.0.0.rc4 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.0.0.rc3 lib/generators/clearance/install/templates/db/migrate/create_users.rb