summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2016-07-18 20:15:26 -0600
committermo khan <mo@mokhan.ca>2016-07-18 20:15:26 -0600
commit75f84849b6fa146ca67c86cae2ba692b9fa7738c (patch)
tree02efe8c85af67ca4698353818ffce6c8dc1d6960 /db
parentda1317336ddadf80369fe226b83a9bd375b2cdd0 (diff)
add target_duration.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160719020232_add_duration_to_exercise_sets.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20160719020232_add_duration_to_exercise_sets.rb b/db/migrate/20160719020232_add_duration_to_exercise_sets.rb
new file mode 100644
index 0000000..b3e3cb9
--- /dev/null
+++ b/db/migrate/20160719020232_add_duration_to_exercise_sets.rb
@@ -0,0 +1,5 @@
+class AddDurationToExerciseSets < ActiveRecord::Migration[5.0]
+ def change
+ add_column :exercise_sets, :target_duration, :integer
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 7c4a944..1e99651 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: 20160710010020) do
+ActiveRecord::Schema.define(version: 20160719020232) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -25,6 +25,7 @@ ActiveRecord::Schema.define(version: 20160710010020) do
t.uuid "exercise_id", null: false
t.uuid "workout_id"
t.string "type", null: false
+ t.integer "target_duration"
t.index ["exercise_id", "workout_id"], name: "index_exercise_sets_on_exercise_id_and_workout_id", using: :btree
t.index ["exercise_id"], name: "index_exercise_sets_on_exercise_id", using: :btree
end