Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
schedules
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
schedules
Commits
6968dd63
Commit
6968dd63
authored
Apr 07, 2018
by
Zac Wood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added models
parent
fb0ad473
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
327 additions
and
0 deletions
+327
-0
schedules/Gemfile.lock
schedules/Gemfile.lock
+196
-0
schedules/app/models/course.rb
schedules/app/models/course.rb
+3
-0
schedules/app/models/section.rb
schedules/app/models/section.rb
+3
-0
schedules/app/models/semester.rb
schedules/app/models/semester.rb
+2
-0
schedules/db/migrate/20180407190422_create_semesters.rb
schedules/db/migrate/20180407190422_create_semesters.rb
+10
-0
schedules/db/migrate/20180407190502_create_courses.rb
schedules/db/migrate/20180407190502_create_courses.rb
+11
-0
schedules/db/migrate/20180407190750_create_sections.rb
schedules/db/migrate/20180407190750_create_sections.rb
+24
-0
schedules/test/fixtures/courses.yml
schedules/test/fixtures/courses.yml
+11
-0
schedules/test/fixtures/sections.yml
schedules/test/fixtures/sections.yml
+37
-0
schedules/test/fixtures/semesters.yml
schedules/test/fixtures/semesters.yml
+9
-0
schedules/test/models/course_test.rb
schedules/test/models/course_test.rb
+7
-0
schedules/test/models/section_test.rb
schedules/test/models/section_test.rb
+7
-0
schedules/test/models/semester_test.rb
schedules/test/models/semester_test.rb
+7
-0
No files found.
schedules/Gemfile.lock
0 → 100644
View file @
6968dd63
GEM
remote: https://rubygems.org/
specs:
actioncable (5.1.6)
actionpack (= 5.1.6)
nio4r (~> 2.0)
websocket-driver (~> 0.6.1)
actionmailer (5.1.6)
actionpack (= 5.1.6)
actionview (= 5.1.6)
activejob (= 5.1.6)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.1.6)
actionview (= 5.1.6)
activesupport (= 5.1.6)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.1.6)
activesupport (= 5.1.6)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.1.6)
activesupport (= 5.1.6)
globalid (>= 0.3.6)
activemodel (5.1.6)
activesupport (= 5.1.6)
activerecord (5.1.6)
activemodel (= 5.1.6)
activesupport (= 5.1.6)
arel (~> 8.0)
activesupport (5.1.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
arel (8.0.0)
bindex (0.5.0)
builder (3.2.3)
byebug (10.0.2)
capybara (2.18.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (>= 2.0, < 4.0)
childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
coffee-rails (4.2.2)
coffee-script (>= 2.2.0)
railties (>= 4.0.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
crass (1.0.3)
erubi (1.7.1)
execjs (2.7.0)
ffi (1.9.23)
globalid (0.4.1)
activesupport (>= 4.2.0)
i18n (1.0.0)
concurrent-ruby (~> 1.0)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.2.2)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.0)
mini_mime (>= 0.1.1)
method_source (0.9.0)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.11.3)
multi_json (1.13.1)
nio4r (2.3.0)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
public_suffix (3.0.2)
puma (3.11.3)
rack (2.0.4)
rack-test (1.0.0)
rack (>= 1.0, < 3)
rails (5.1.6)
actioncable (= 5.1.6)
actionmailer (= 5.1.6)
actionpack (= 5.1.6)
actionview (= 5.1.6)
activejob (= 5.1.6)
activemodel (= 5.1.6)
activerecord (= 5.1.6)
activesupport (= 5.1.6)
bundler (>= 1.3.0)
railties (= 5.1.6)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.1.6)
actionpack (= 5.1.6)
activesupport (= 5.1.6)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
ruby_dep (1.5.0)
rubyzip (1.2.1)
sass (3.5.6)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.11.0)
childprocess (~> 0.5)
rubyzip (~> 1.2)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
turbolinks (5.1.0)
turbolinks-source (~> 5.1)
turbolinks-source (5.1.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (4.1.8)
execjs (>= 0.3.0, < 3)
web-console (3.5.1)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
xpath (3.0.0)
nokogiri (~> 1.8)
PLATFORMS
ruby
DEPENDENCIES
byebug
capybara (~> 2.13)
coffee-rails (~> 4.2)
jbuilder (~> 2.5)
listen (>= 3.0.5, < 3.2)
puma (~> 3.7)
rails (~> 5.1.6)
sass-rails (~> 5.0)
selenium-webdriver
spring
spring-watcher-listen (~> 2.0.0)
sqlite3
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
BUNDLED WITH
1.16.1
schedules/app/models/course.rb
0 → 100644
View file @
6968dd63
class
Course
<
ApplicationRecord
belongs_to
:semester
end
schedules/app/models/section.rb
0 → 100644
View file @
6968dd63
class
Section
<
ApplicationRecord
belongs_to
:course
end
schedules/app/models/semester.rb
0 → 100644
View file @
6968dd63
class
Semester
<
ApplicationRecord
end
schedules/db/migrate/20180407190422_create_semesters.rb
0 → 100644
View file @
6968dd63
class
CreateSemesters
<
ActiveRecord
::
Migration
[
5.1
]
def
change
create_table
:semesters
do
|
t
|
t
.
string
:season
t
.
string
:year
t
.
timestamps
end
end
end
schedules/db/migrate/20180407190502_create_courses.rb
0 → 100644
View file @
6968dd63
class
CreateCourses
<
ActiveRecord
::
Migration
[
5.1
]
def
change
create_table
:courses
do
|
t
|
t
.
string
:subject
t
.
string
:course_number
t
.
references
:semester
,
foreign_key:
true
t
.
timestamps
end
end
end
schedules/db/migrate/20180407190750_create_sections.rb
0 → 100644
View file @
6968dd63
class
CreateSections
<
ActiveRecord
::
Migration
[
5.1
]
def
change
create_table
:sections
do
|
t
|
t
.
string
:name
t
.
string
:crn
t
.
string
:section_type
t
.
string
:title
t
.
string
:instructor
t
.
date
:start_date
t
.
date
:end_date
t
.
string
:days
t
.
string
:start_time
t
.
string
:end_time
t
.
string
:location
t
.
string
:status
t
.
string
:campus
t
.
string
:notes
t
.
integer
:size_limit
t
.
references
:course
,
foreign_key:
true
t
.
timestamps
end
end
end
schedules/test/fixtures/courses.yml
0 → 100644
View file @
6968dd63
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one
:
subject
:
MyString
course_number
:
MyString
semester
:
one
two
:
subject
:
MyString
course_number
:
MyString
semester
:
two
schedules/test/fixtures/sections.yml
0 → 100644
View file @
6968dd63
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one
:
name
:
MyString
crn
:
MyString
section_type
:
MyString
title
:
MyString
instructor
:
MyString
start_date
:
2018-04-07
end_date
:
2018-04-07
days
:
MyString
start_time
:
MyString
end_time
:
MyString
location
:
MyString
status
:
MyString
campus
:
MyString
notes
:
MyString
size_limit
:
1
course
:
one
two
:
name
:
MyString
crn
:
MyString
section_type
:
MyString
title
:
MyString
instructor
:
MyString
start_date
:
2018-04-07
end_date
:
2018-04-07
days
:
MyString
start_time
:
MyString
end_time
:
MyString
location
:
MyString
status
:
MyString
campus
:
MyString
notes
:
MyString
size_limit
:
1
course
:
two
schedules/test/fixtures/semesters.yml
0 → 100644
View file @
6968dd63
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one
:
season
:
MyString
year
:
MyString
two
:
season
:
MyString
year
:
MyString
schedules/test/models/course_test.rb
0 → 100644
View file @
6968dd63
require
'test_helper'
class
CourseTest
<
ActiveSupport
::
TestCase
# test "the truth" do
# assert true
# end
end
schedules/test/models/section_test.rb
0 → 100644
View file @
6968dd63
require
'test_helper'
class
SectionTest
<
ActiveSupport
::
TestCase
# test "the truth" do
# assert true
# end
end
schedules/test/models/semester_test.rb
0 → 100644
View file @
6968dd63
require
'test_helper'
class
SemesterTest
<
ActiveSupport
::
TestCase
# test "the truth" do
# assert true
# end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment