gitlab
コンソールの起動
gitlab-rails console
存在するユーザの確認
irb(main):024:0> User.active
User.active => #<ActiveRecord::Relation [#<User id:4 @seven>, #<User id:5 @user>, #<User id:1 @dexter>]>
ユーザ情報の確認と変更
irb(main):026:0> d=User.where(id:1).first
d=User.where(id:1).first => #<User id:1 @dexter>
irb(main):027:0> d.admin
d.admin => true
irb(main):029:0> d.password="P@ssw0rd"
d.password="P@ssw0rd" => "P@ssw0rd"
irb(main):030:0> d.save
d.save
Enqueued ActionMailer::DeliveryJob (Job ID: 49a81413-e584-4962-a960-4fa5ed2dc236) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", #<GlobalID:0x00007f444db7b310 @uri=#<URI::GID gid://gitlab/User/1>> => true