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.
john (Guest)
on 2007-01-22 02: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 ?
on 2007-01-22 04: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.