How do you guys mark Ecto schemas when they are just postgres views and not tables?

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?

2 Likes

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.

4 Likes

This sounds like a good approach!

1 Like