All threads / How to structure DB in such a way that we can create attributes dynamically in rails

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How to structure DB in such a way that we can create attributes dynamically in rails

Anand Duddella asked in Databases
Hi 

I am trying to create for example a contact model but currently i only know of for example first name, last name and email but would want to give the user a choice of entering more custom fields which would be linked to my contact model

Can any one help or point towards an article with code which does this

Thank you in advance 

Regards
Anand
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 35,699+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.