Sha256: fd8c4ae255097c8dc823d973f295e42a149823a26df218081ae272c0506f574b
Contents?: true
Size: 302 Bytes
Versions: 1
Compression:
Stored size: 302 Bytes
Contents
class ForcePasswordResetDuringSetup < ActiveRecord::Migration 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redmine_extensions-0.1.15 | spec/redmine/db/migrate/20160404080304_force_password_reset_during_setup.rb |