Rails, Angular, Postgres practice