[Rails] Re: what can i do if super admin user id is deleted by admin only

2015-02-25 Thread Sailatha K.
ankit c wrote in post #1168678: > using rails console create new admin.. for instance, if you are having > user > model having role admin.. you can create like > User.create(:email => "ad...@admin.com", :username => "admin", :password > => > "12345678", :password_confirmation => "12345678", :admin

[Rails] Re: what can i do if super admin user id is deleted by admin only

2015-02-25 Thread ankit c
using rails console create new admin.. for instance, if you are having user model having role admin.. you can create like User.create(:email => "ad...@admin.com", :username => "admin", :password => "12345678", :password_confirmation => "12345678", :admin => true).. I hope this will help On Thu