forked from web-cat/code-workout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexercise_collections.rb
37 lines (35 loc) · 1.1 KB
/
exercise_collections.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
# == Schema Information
#
# Table name: exercise_collections
#
# id :integer not null, primary key
# name :string(255)
# description :text(65535)
# user_group_id :integer
# license_id :integer
# created_at :datetime
# updated_at :datetime
# user_id :integer
# course_offering_id :integer
#
# Indexes
#
# index_exercise_collections_on_course_offering_id (course_offering_id)
# index_exercise_collections_on_license_id (license_id)
# index_exercise_collections_on_user_group_id (user_group_id)
# index_exercise_collections_on_user_id (user_id)
#
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :exercise_collection do
factory :group_owned_collection do
name { "MCQExercises" }
description { "Collection of multiple choice exercises." \
"Created by FactoryBot for testing." }
end
factory :user_owned_collection do
name { "Owned by user" }
description { "Exercises owned by a single user." }
end
end
end