PostgreSQL views are a useful tool to make query logic reusable and maintainable. This talk will cover their pros and cons, a couple of real-world use cases, and how to use them in Rails apps using the Scenic gem.
YouTube :
Presentation Slides :
https://davidcornu.github.io/views-demo/
GitHub Code Repository :
Blog post announcement :