Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
e3c17737
Commit
e3c17737
authored
Sep 14, 2018
by
Zac Wood
Browse files
Added fields to Course model
parent
8970cc67
Changes
2
Show whitespace changes
Inline
Side-by-side
schedules_api/db/migrate/20180914141722_add_fields_to_course.rb
0 → 100644
View file @
e3c17737
class
AddFieldsToCourse
<
ActiveRecord
::
Migration
[
5.1
]
def
change
add_column
:courses
,
:description
,
:string
add_column
:courses
,
:credits
,
:string
add_column
:courses
,
:prerequisite
,
:string
add_column
:courses
,
:restrictions
,
:string
end
end
schedules_api/db/schema.rb
View file @
e3c17737
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2018091
0213148
)
do
ActiveRecord
::
Schema
.
define
(
version:
2018091
4141722
)
do
create_table
"closures"
,
force: :cascade
do
|
t
|
t
.
date
"date"
...
...
@@ -49,6 +49,10 @@ ActiveRecord::Schema.define(version: 20180910213148) do
t
.
integer
"semester_id"
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
t
.
string
"description"
t
.
string
"credits"
t
.
string
"prerequisite"
t
.
string
"restrictions"
t
.
index
[
"semester_id"
],
name:
"index_courses_on_semester_id"
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