brycesch/thespian_scheduler — Issue #8: db seeding
Author: semlak
Created: 2011-11-27 18:03:02+00:00
State: open

Hi,

I created a new branch called db_seeding. The only changes are two files in the db directory, 'db_ru_seeds.rb' and 'db_actor_seeds.rb', which I've been using to seed my project database.

You could just checkout the branch and move the files to wherever you want. I put mine in the parent directory of the project. Your home directory would work, too. To seed the db,
'rails runner path_to_files/db_actor_seeds.rb'
'rails runner path_to_files/db_ru_seeds.rb'

There are brief instructions in the db_actor_seeds.rb file, but remember that running these will delete the respective tables (ie running the db_actor_seeds will first clear the actors db table).