Deletion of administrator user with all caps prior to assigning new user with administrator privleges.
After realizing the I had created an administrator user with all caps, I created a new user and did not assign administrator to the new user, then proceeded to delete the old user administrator. Not I see the old administrator user but am not allowed access.
#2 Updated by cpg over 11 years ago
i heard that you got back this:
result: NoMethodError: undefined method `admin=' for nil:NilClass from (irb):1
the above method makes the last user an admin. it looks like User.last returns nil, which is kind of troublesome. basically, it means that there are no users in your system at this time.
we can perhaps force-create a dummy user. with
echo 'u = User.new(:login => "foo"); u.save_without_validation;' | ./script/console
then re-apply the first command.
Also available in: Atom