Today I ran into the issue with creating an Index in Rails (the database being PostgreSQL). The migration looked something like this:
Which gave me this error:
Luckily there’s an easy fix - we can specify the name of the index (more info over at APIdock).
Note the index name must be a string, not a symbol (as per APIdock). Happy coding.
Share on:
Twitter,
Facebook,
Google+
or use the Permalink