Yes. We can have multiple store attributes in a single table. Here is an example:
Create a model:
- Run
rails g model user
- Change migration as follow:
Make store attributes inside the model
- Add following lines inside the model:
###
Posted by : ramlaxman on
Yes. We can have multiple store attributes in a single table. Here is an example:
rails g model user
###