-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathcourses.rb
41 lines (38 loc) · 1.03 KB
/
courses.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
# == Schema Information
#
# Table name: courses
#
# id :integer not null, primary key
# is_hidden :boolean default(FALSE)
# name :string(255) default(""), not null
# number :string(255) default(""), not null
# slug :string(255) default(""), not null
# created_at :datetime
# updated_at :datetime
# creator_id :integer
# organization_id :integer not null
# user_group_id :integer
#
# Indexes
#
# index_courses_on_organization_id (organization_id)
# index_courses_on_slug (slug)
# index_courses_on_user_group_id (user_group_id)
#
# Foreign Keys
#
# courses_organization_id_fk (organization_id => organizations.id)
#
FactoryBot.define do
factory :course do
name { "Introduction to Software Design" }
number { "CS 1114" }
organization_id { 1 }
# url_part "cs-1114"
end
factory :cs_3114 do
name { 'Data Structures and Algorithms' }
number { 'CS 3114' }
organization_id { 1 }
end
end