Trausti Thor Johannsson wrote:
> Simple.
> 
> Two tables.
> 
> Rooms :
> Has info like double bed, fridge, size and such.
> 
> costs : <---- might need a better name
> room_id
> day
> price
> 
> 
> Then you would say something like room has many costs
> And then I would just use julian dates and you can easily ask each
> room for dates in a given range.

Julian dates?  Isn't that a bit of a low-level implementation detail? 
Personally, I'd try to do this using native Ruby and DB date types.

> 
> 
> Trausti

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to