Join Slack
Powered by
is it possible to define a compound index with Pos...
# orm-help
c
Carlos Gomez
07/28/2021, 9:56 PM
is it possible to define a compound index with Postgresql as the database?
r
Ryan
07/29/2021, 8:25 AM
@Carlos Gomez
👋 Using Migrate, you should be able to define a compound index in the migration
.sql
file.
c
Carlos Gomez
07/29/2021, 7:00 PM
@Ryan
thanks. Would fall under an "Advanced Migration", where I'd need to edit the migration before applying it like described
here
?
r
Ryan
07/30/2021, 6:46 AM
Yeah, so
--create-only
then add your compound index to the
.sql
file and finally
migrate dev
.
👍 1
8
Views
Open in Slack
Previous
Next