Forum: Ruby on Rails class variables with migrations

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ac052cd9340165311454aae4f410f6cc?d=identicon&s=25 john (Guest)
on 2007-01-22 01:40
(Received via mailing list)
I want to have class variables that are used for static choice arrays
for select boxes (ie CAR_MAKE = ['GM','Toyota','Ford',.....]).  I think
the best place to put these are with the model class but then how are
they specified with migrations ?
70ca58d0e0e0eabbdb74d177417d09d7?d=identicon&s=25 (Guest)
on 2007-01-22 03:28
(Received via mailing list)
You could also define these constants in config/environment.rb
This topic is locked and can not be replied to.