Rails Model with attribute that has different value on different day -


i have model called table, table has attributes called price. , price may change everyday whenever owner of table wants to. how can keep track of values of price can return price of table on 1st jan 2017 or other past dates.

one way make price new model tablecalendarprice has 2 attributes date , price , reference table model.


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -