diff options
| author | mo khan <mo@mokhan.ca> | 2015-06-01 20:23:06 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-06-01 20:23:06 -0600 |
| commit | 62ae59dc09dcac43ef69491998da7cd98d74385a (patch) | |
| tree | 7803b9faa6c6434d335206c8b3645af40fe4887a /db | |
| parent | b7645ba226605615e20e22dab8925602ad9f271e (diff) | |
extract method.
Diffstat (limited to 'db')
| -rw-r--r-- | db/seeds.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index cf22bc6..964bbe5 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,11 +1,6 @@ # This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) -program = Program.create!(name: "StrongLifts 5×5") +program = Program.create!(name: Program::STRONG_LIFTS) squat = Exercise.create!(name: "Squat") bench_press = Exercise.create!(name: "Bench Press") barbell_row = Exercise.create!(name: "Barbell Row") |
