Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.39 KB

README.rdoc

File metadata and controls

34 lines (28 loc) · 1.39 KB

README

Development team notes:

Database Test Data


After each pull, please do the following to place the database in a simple starter state we can all use:

rake db:reset
rake db:populate

The initial database population is defined by lib/tasks/sample_data.rake. It uses the factories defined in spec/factories/* to generate entities. If you add new modael classes and want to generate test data in the database, please add to the sample_data.rake file so that this population will happen automatically for everyone. The sample_data.rake contains only “sample/try out” data for use during development, and it won’t appear on the production server. Initial database contents provided for all new installs, including the production server, is described in db/seeds.rb instead.

- The initial database includes the following accounts:
  - [email protected] (pass: adminadmin), has admin-level access
  - [email protected] (pass: hokiehokie), has instructor access
  - example-*@railstutorial.org (pass: hokiehokie) 50 students

  It also includes the following other objects:
  - two terms (spring 2013 and fall 2013),
  - one organization (VT)
  - one course (CS 1114)
  - two offerings of 1114 (one each semester)
    - one course offering is set up with the admin and instructor
      as instructors, and all other sample accounts as students