Skip to content

Underscore in Enum field name while creating an index #58

@esjayrockz

Description

@esjayrockz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions