sophiebits / schedule-plus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Seeding the database
====================

- Rake task found in lib/tasks/seed.rake
- Seeding logic found in app/models/seeder.rb
- Use this instead of rake db:seed

rake seed:semesters
- Seeds the db with semesters

rake seed:soc semester="Spring 2012"
- requires semesters to be seeded first
- semester field is optional (will use current semester)
- Seeds the db with SoC data
- also seeds db with Department data

rake seed:all
- Runs all the above tasks

About


Languages

Language:Ruby 64.6%Language:JavaScript 35.3%Language:Shell 0.1%