What I want to create is one of the indexes that has some columns indexed and others included. This kind of index is described by PostgreSQL in their documentation here
The SQL query to create the index looks something like CREATE INDEX tab_x_y ON tab(x) INCLUDE (y);
Looking at the ActiveRecord PostgreSQL adapter documentation here
I don't see any option for me to use this INCLUDE column feature.
Do I have to run this as a raw SQL query? Is there another way?
Notes
- I am not asking how to run a query or which index will be used for a query.
- I am not asking how to create a regular index using ActiveRecord.
- I am not asking how to create a migration using ActiveRecord.
- I specifically want information about how to create a specific kind of index with a specific option.