Typically, lights are used to provide your tests with data, not to populate the data in your database. You can - and some people, like the links you point to - use lights for this purpose.
The lights are fine, but using Ruby gives us some advantages: for example, the ability to read from a CSV file and fill out records based on this data set. Or read from the YAML binding file if you really want to: starting from your start with a programming language, your options are wide open from there.
db/seed.rb RAILS_ENV .
db: seed , : - -... , ( ActiveRecord find_or_create_by...() ).
Bootstrapper, DSL RAILS_ENV , , .
- , . Ruby (db/bootstrapdata/) Arild Shirazi required gem ( ) .
. -, (, ).
: ( , , Rails, . ).