We have a few Ecto schemas that are just mapped to Postgres views and not real tables.
Was just wondering if you guys mark it differently and how. Do you leave a comment up top, # This is a postgres view.
or similar?
We have a few Ecto schemas that are just mapped to Postgres views and not real tables.
Was just wondering if you guys mark it differently and how. Do you leave a comment up top, # This is a postgres view.
or similar?
I call them “MyNiceView” and underlying view is called “my_nice_view” so it is clear from just looking at it that this is not a regular table.
This sounds like a good approach!