I’m new to Rails. I do a lot of work that requires standard State
FIPS codes (both alpha and numeric). I know enough on how to generate
my model and migrations and all that. It’s a rather simple model:
name:string, fipsalpha:string, fipsnum:integer. This lets me produce
dropdown lists in my app that I can tie to a FIPS code. (For example
Lousiana - LA - 22).
My question is this – is there a way to not have to populate this
data for every Rail app I use? I know you can create a constant
inside the model, but I’d like to keep this in the database). I was
wondering if there was a way to have the migration in addition to
building the schema initially populate it as well? This way I could
use this migration in any of my projects. What’s the best way to
handle something like this?