-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathworkout_scores.rb
50 lines (48 loc) · 1.69 KB
/
workout_scores.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# == Schema Information
#
# Table name: workout_scores
#
# id :integer not null, primary key
# completed :boolean
# completed_at :datetime
# exercises_completed :integer
# exercises_remaining :integer
# last_attempted_at :datetime
# lis_outcome_service_url :string(255)
# lis_result_sourcedid :string(255)
# score :float(24)
# started_at :datetime
# created_at :datetime
# updated_at :datetime
# lti_workout_id :integer
# user_id :integer not null
# workout_id :integer not null
# workout_offering_id :integer
#
# Indexes
#
# idx_ws_on_user_workout_workout_offering (user_id,workout_id,workout_offering_id)
# index_workout_scores_on_lti_workout_id (lti_workout_id)
# index_workout_scores_on_user_id (user_id)
# index_workout_scores_on_workout_id (workout_id)
# workout_scores_workout_offering_id_fk (workout_offering_id)
#
# Foreign Keys
#
# fk_rails_... (lti_workout_id => lti_workouts.id)
# workout_scores_user_id_fk (user_id => users.id)
# workout_scores_workout_id_fk (workout_id => workouts.id)
# workout_scores_workout_offering_id_fk (workout_offering_id => workout_offerings.id)
#
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :workout_score do
score { "" }
completed { false }
started_at { "2015-01-17 14:08:55" }
completed_at { "2015-01-17 14:08:55" }
last_attempted_at { "2015-01-17 14:08:55" }
exercises_completed { 1 }
exercises_remaining { 1 }
end
end