diff options
| author | mo <mo.khan@gmail.com> | 2017-08-23 22:30:28 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2017-08-23 22:30:28 -0600 |
| commit | 5c5738beec2726000a51fcd3f4ffd296a5b7c55e (patch) | |
| tree | 8c0b5b5da420ac2f80c2ef16bb2764070cc1b4d0 /db | |
| parent | b1da798564ac10782dc25619af934ab86fc2e716 (diff) | |
parse new format of csv.
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20170824041919_rename_dips.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 2 | ||||
| -rw-r--r-- | db/seeds.rb | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/db/migrate/20170824041919_rename_dips.rb b/db/migrate/20170824041919_rename_dips.rb new file mode 100644 index 0000000..ebf03c6 --- /dev/null +++ b/db/migrate/20170824041919_rename_dips.rb @@ -0,0 +1,5 @@ +class RenameDips < ActiveRecord::Migration[5.0] + def change + Exercise.where(name: "Dips").update_all(name: "Weighted Dips") + end +end diff --git a/db/schema.rb b/db/schema.rb index 088115f..7600194 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20160720022923) do +ActiveRecord::Schema.define(version: 20170824041919) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" diff --git a/db/seeds.rb b/db/seeds.rb index 3f76b65..701056c 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -4,7 +4,7 @@ program = Program.find_or_create_by!(name: Program::STRONG_LIFTS) squat = Exercise.find_or_create_by!(name: "Squat") bench_press = Exercise.find_or_create_by!(name: "Bench Press") barbell_row = Exercise.find_or_create_by!(name: "Barbell Row") -dips = Exercise.find_or_create_by!(name: "Dips") +dips = Exercise.find_or_create_by!(name: "Weighted Dips") paused_bench_press = Exercise.find_or_create_by!(name: "Paused Bench Press") planks = Exercise.find_or_create_by!(name: "Planks") |
