class AddPrivateProfileToUsers < ActiveRecord::Migration
  def change
    add_column :users, :private_profile, :boolean, index: { where: "(private_profile = true)" }, default: false
  end
end

class AddPrivateProfileToUsers < ActiveRecord::Migration
  def change
    add_column :users, :private_profile, :boolean, index: { where: "(private_profile = false)" }, default: true
  end
end

Make private_profile flag true by default.
Make private_profile flag true by default.

Change the expression index to match the usual query for it.
