class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :email, null: false, unique: true
      t.string :password_hash, null: false

      t.timestamps
    end
  end
end

class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :email, null: false, unique: true
      t.string :password_digest, null: false

      t.timestamps
    end
  end
end

Replace :password_hash with :password_digest as is required by the newer Bcrypt-Rails integration using the HasSecurePassword feature.
Replace :password_hash with :password_digest as is required by the newer Bcrypt-Rails integration using the HasSecurePassword feature.
