On Thursday, January 2, 2020 at 12:26:27 PM UTC-8, John Hogarty - Ho Gi Hung wrote: > > Thank you for the response Jeremy. I was hoping that I had missed > something and there was a convenience method for checking on > existing indexes :) > > I'll use my current code for now with the begin/rescue and if I encounter > repeated future issues, will look to offer a better solution. >
Adam on IRC mentioned that you may be able to use Database#indexes to check what indexes exist on the table. You could see if the index is included in that. There are cases where indexes would not be included in the output (partial indexes, functional indexes, and others), but it may be usable for you. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/2429d2c6-8a47-4c7b-9388-49b27d4bc7b3%40googlegroups.com.
