lundi 3 octobre 2016

What's the best way to store checkboxes in a PostGres database

what would be the best way to store a student's vehicle in a database? They can select bike, scooter or car.

Some say the best way is to store a hash in the database (what would the attribute type be?) other say the best way is to create a Has many :through association.

Thanks!

Aucun commentaire:

Enregistrer un commentaire