Gitorious - apagando usuário

$> cd /var/www/gitorious

$> env RAILS_ENV=production script/console

deverá mostrar a seguinte tela:

Loading production environment (Rails 2.3.5)
>>user = User.find_by_login "username"

=> #<User id: 7, login: "wbatista", email: "wianey.batista@dafiti.com.br", crypted_password: "c69bf7b9d1f9a15575c14ff75172113b00ea89c5", salt: "2b5b76e624d61ae71d518f6d3819a0af0711a254", created_at: "2012-04-11 17:55:26", updated_at: "2012-05-03 14:50:20", remember_token: nil, remember_token_expires_at: nil, activation_code: nil, activated_at: "2012-04-11 17:59:56", ssh_key_id: nil, fullname: "wbatista", url: nil, identity_url: "", is_admin: false, suspended_at: nil, aasm_state: "terms_accepted", public_email: true, wants_email_notifications: true, password_key: "127b931aadf75a16e6d61c13172fcd87", avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil, default_favorite_notifications: false>

Pronto, achou! Agora é só destrui-lo.

>>user.destroy

Comentários

Postagens mais visitadas