A rails migration that specifies the distance between two months..?

Posted by Trip on Stack Overflow See other posts from Stack Overflow or by Trip
Published on 2010-05-12T00:21:08Z Indexed on 2010/05/12 0:24 UTC
Read the original article Hit count: 526

I would like to make two drop downs. a start time, and an end time. Specifically, I only need months. I would like to, for example, choose January, and then March, and then have the database read that it is the these two months plus February.

Is there any out of the box migration that could work?

I'm guessing..

script/generate migration AddMonthsToClass beginDate:datetime #through endDate:datetime

I apologize ahead of time if my question sounds retarded! Sorry! :D

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about mysql