What is the best way to create a model q has a field that is an integer Enum?

Asked

Viewed 75 times

2

What is the best way to create a model q has a field that is an integer Enum ? ex:Rails g model status ( do not know how to inform that it is an Enum nor the data type)

2 answers

1

0

You can use a Boolean for values true or false.

status:boolean

Browser other questions tagged

You are not signed in. Login or sign up in order to post.