[root@svr34 bin]# gitlab-rails console production
Loading production environment (Rails 4.2.5.2)
irb(main):001:0> user = User.where(id: 1).first
=> #<User id: 1, email: "admin@example.com", ...
irb(main):002:0> user.password=12345678
=> 12345678
irb(main):003:0> user.password_confirmation=12345678
=> 12345678
irb(main):004:0> user.save
=> true
irb(main):005:0> quit

 

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2021-04-03
  • 2021-06-04
  • 2021-11-24
  • 2021-09-05
  • 2021-09-25
猜你喜欢
  • 2022-01-17
  • 2022-12-23
  • 2021-07-26
  • 2021-07-09
  • 2021-10-05
  • 2022-01-05
  • 2021-08-22
相关资源
相似解决方案