Migrations for populating authority tables

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?

Sounds perfectly reasonable to me.

– Tom M.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs