MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/pms_cafsinfotech_in/db/migrate/20160404080304_force_password_reset_during_setup.rb
class ForcePasswordResetDuringSetup < ActiveRecord::Migration[4.2]
  def up
    User.where(login: "admin", last_login_on: nil).update_all(must_change_passwd: true)
  end

  def down
    User.where(login: "admin", last_login_on: nil, must_change_passwd: true).update_all(must_change_passwd: false)
  end
end