[root@localhost gitlab]# gitlab-rails console production
DEPRECATION WARNING: Passing the environment's name as a regular argument is deprecated and will be removed in the next Rails version. Please, use the -e option instead. (called from require at bin/rails:4)
--------------------------------------------------------------------------------
GitLab: 12.4.0 (1425a56c75b)
GitLab Shell: 10.2.0
PostgreSQL: 10.9
--------------------------------------------------------------------------------
Loading production environment (Rails 5.2.3)
irb(main):001:0> user = User.where(id:1).first
irb(main):002:0> user.password='abcde-123!'
=> "abcde-123!"
irb(main):003:0> user.save!
Enqueued ActionMailer::DeliveryJob (Job ID: 446f1e24-2683-4278-aaae-386ce5f64644) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", #<GlobalID:0x00007f13582abc88 @uri=#<URI::GID gid://gitlab/User/1>>
=> true
irb(main):004:0>