Rails PostgreSQL auth Icon
It will also enforce the permissions set in the DB layer.