Skip to content

CodeWorkout: a programming practice and self-study web site

Notifications You must be signed in to change notification settings

sallyhamouda/code-workout

 
 

Repository files navigation

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:
  - admin@codeworkout.org (pass: adminadmin), has admin-level access
  - example-1@railstutorial.org (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

About

CodeWorkout: a programming practice and self-study web site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 74.1%
  • HTML 20.5%
  • CSS 3.7%
  • CoffeeScript 0.6%
  • Python 0.6%
  • JavaScript 0.5%