[root@gitlab gitlab]# gitlab-rails console production
-------------------------------------------------------------------------------------
GitLab: 11.5.1 (c90ae59)
GitLab Shell: 8.4.1
postgresql: 9.6.8
-------------------------------------------------------------------------------------
Both Deployment and its :status machine have defined a different default for "status". Use only one or the other for defining defaults to avoid unexpected behaviors.
Loading production environment (Rails 4.2.10)
irb(main):003:0> email = Email.find_by(email: "hxp@hxp.plus")
=> #<Email id: 2, user_id: 51, email: "hxp@hxp.plus", created_at: "2024-06-05 03:59:21", updated_at: "2024-06-05 03:59:21">
irb(main):004:0> email.confirmed_at = Time.zone.now
=> Wed, 05 Jun 2024 04:37:42 UTC +00:00
irb(main):005:0> email.save!
=> true
irb(main):006:0> exit