I'd like some advice if poss.
I've got my app up and running and I'm very pleased. I've learned an
awful lot and learn more each day, ror is amazing.
I've got just two models in my DB at the moment - owners and properties,
an owner has many properties and a property belongs to an owner. I store
lots of things in the owner table including login information, notes as
well as the obvious stuff like name and address. A property is inactive
when first added by an owner (as it is not paid for) and later the admin
activates the property (just a boolean field that the admin can set but
not the owner). Everything works just fine and I'm very comfortable with
the existing setup (two tables built with migrations is a good way for
me to cut my teeth). As stated below I'd like to stay with two tables
for the time being (although I could be persuaded to introduce a new
I've got a challenge now though that I'm not 100% sure how to handle. I
need to start recording when an owner pays. They pay per property for
one year up front. After payment the admin makes the property active.
My initial reaction is this, two new fields in the Property table -
datepaid(date) amountpaid(integer), I can then calculate a renewal date
by datepaid + oneyear. I don't mind if later on I'll be introducing a
payments history table but for now I just want a simple solution to get
I'd really appreciate any feedback.