melonhead901 / lab-specimen-transport-system

Automatically exported from code.google.com/p/lab-specimen-transport-system
0 stars 0 forks source link

Add default values to db/seeds.rb #120

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Since we want to produce a working application, we should put some defaults in 
db/seeds.rb so that they will load when we create the database. I'm thinking a 
default administrator and client and item attribute sets for transport 
conditions, colors, special/irreplaceable.

Andrew will work on this one, along with improving test data generation.

Original issue reported on code.google.com by rockina...@gmail.com on 26 May 2011 at 4:42

GoogleCodeExporter commented 8 years ago
I'm determining what needs to go in seeds.rb and what needs to go in the 
fixtures.

Original comment by rockina...@gmail.com on 26 May 2011 at 11:31

GoogleCodeExporter commented 8 years ago
I've added Bootstrapper which can be run with `rake db:bootstrap` to load the 
defaults for different environments. Read db/bootstrap.rb if you are interested 
in adding defaults to the system. `rake db:setup` also works. Fixtures 
interfere with this, but we can fix that later.

Original comment by rockina...@gmail.com on 2 Jun 2011 at 1:36