Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User < ApplicationRecord
- enum age_group: [
- '18_to_22',
- '23_to_27',
- '28_to_32',
- '33_to_37',
- '38_to_42'
- ]
- end
- User.18_to_22
- syntax error, unexpected tINTEGER, expecting '('
- User.18_to_22
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement