You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the correct syntax for creating an index on an enum field?
I've already created an enum named action like this. enum :action, Enum::Task::ACTION, default: :something
I wanted to know if the correct syntax is index _action: 1 or index action: 1.
The text was updated successfully, but these errors were encountered:
esjayrockz
changed the title
Underscore in field name while creating an index
Underscore in Enum field name while creating an index
Oct 2, 2019
What is the correct syntax for creating an index on an enum field?
I've already created an enum named action like this.
enum :action, Enum::Task::ACTION, default: :something
I wanted to know if the correct syntax is
index _action: 1
orindex action: 1
.The text was updated successfully, but these errors were encountered: