Skip to content
New issue

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

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

Already on GitHub? # to your account

Support for passing :_default option to enum #53

Open
dush opened this issue Aug 17, 2021 · 0 comments
Open

Support for passing :_default option to enum #53

dush opened this issue Aug 17, 2021 · 0 comments

Comments

@dush
Copy link

dush commented Aug 17, 2021

Rails 6.1 added :_default option for enum.

enum status: {unassigned: 0, assigned: 1, resolved: 2, closed: 3}, _default: :unassigned do
 ...
end
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant