feat(migrations): Add a view for simplified post querying

Adds a view to avoid having to query and join the users & posts table
inside of the application (which isn't particularly convenient in Diesel).
This commit is contained in:
Vincent Ambo 2018-05-01 20:48:35 +02:00 committed by Vincent Ambo
parent 7a17d532c4
commit 9d5830e9a7
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1 @@
DROP VIEW simple_posts;