put resource: user before devise:user and now current_user is understood. Added constraint in route for admin permission too
going to install postgres locally
changed local db to Postgres