I have a problem with a project I am working on.
What I would like to know is, is there a way to create a field in a
database dynamically after an action from a user is done. Such that the
user can create a field on the fly and create as many as they want?
The story.
I have an ecom site and we sell products, but the price components (i.e.
tax, cost, markup ect.) are dynamic. The way the company wants it set
up, there are identifiers. The user can make as many identifiers as they
want. An identifier would be tax, cost, markup, or maybe something like
fee. The goal is that I don’t care how many they make, but we need to
save these to the DB. We can make a static number of fields, but if they
make more identifiers then we have to go back manually and run a new
migration. I want to get away from this if at all possible.
If anyone has a better idea, i’m totally down with it. Any help would be
great.
Thanks,
Jeremy