Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underscore in Enum field name while creating an index #58

Open
esjayrockz opened this issue Oct 2, 2019 · 0 comments
Open

Underscore in Enum field name while creating an index #58

esjayrockz opened this issue Oct 2, 2019 · 0 comments

Comments

@esjayrockz
Copy link

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.

@esjayrockz esjayrockz changed the title Underscore in field name while creating an index Underscore in Enum field name while creating an index Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant