class AddPasswordChangedAtToUsers < ActiveRecord::Migration
  def change
    add_column :users, :password_changed_at, :datetime
    User.update_all ['password_changed_at = ?', '2013-03-06 20:00:00']
  end
end

class AddPasswordChangedAtToUsers < ActiveRecord::Migration
  def change
    add_column :users, :password_changed_at, :datetime
    User.update_all "password_changed_at = GREATEST('2013-03-06 20:00:00', confirmed_at)"
  end
end

Set password_changed_at to confirmation date for new users
Set password_changed_at to confirmation date for new users

So that we don't force users who've joined in the past 90 days to change their
passphrase too soon.
