Forum: Ruby on Rails Migrations for populating authority tables

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6dfa4d6b56b124fb7816c7c530b3bef3?d=identicon&s=25 Steve Lloyd (Guest)
on 2006-01-25 10:20
I've got a number of fixtures which populate 'authority' tables in an
app (eg tables which are used to construct the values of selects or
valid 'constants'). These will be updated infrequently and are
'configuration' data, so I'm not sure its worth constructing an
interface to do this in the deployed app.
Seeing as migrations can execute arbitrary code, I had thought of adding
one to populate these authority tables-any thoughts on this approach?
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-01-25 19:16
(Received via mailing list)
Sounds perfectly reasonable to me.

--
-- Tom Mornini
This topic is locked and can not be replied to.