Replies: 6 comments
-
@atinder I've been just using a separate table. We've been considering adding it to the gem as well. You can also just hardcode a hash as a constant since the plans aren't likely to change often. |
Beta Was this translation helpful? Give feedback.
-
I'd like to add my 👍 for a convention on storing products and plans. It would be nice to have enough data locally to display a form which can switch between products and plans. |
Beta Was this translation helpful? Give feedback.
-
I can work on adding this as it was an annoyance for me that it wasn't already included. Would we want 2 models, such as Product and Price? As such a Product (e.g. "My SaaS Plan"), can have many prices (e.g. "$5 monthly" or "$50 yearly") |
Beta Was this translation helpful? Give feedback.
-
Unless you're selling multiple products, there's not a need for a Product model. |
Beta Was this translation helpful? Give feedback.
-
True. Maybe just a Plan model then? |
Beta Was this translation helpful? Give feedback.
-
As far as Pay's concerned, probably. I would probably call it Something like this:
|
Beta Was this translation helpful? Give feedback.
-
Additional table or column. what do you recommend?
Beta Was this translation helpful? Give feedback.
All reactions