1
0
Mirror von https://github.com/redmine/redmine.git synchronisiert 2024-07-26 19:38:43 +02:00
redmine/db/migrate/20160404080304_force_password_reset_during_setup.rb

10 Zeilen
307 B
Ruby

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