Commit e3c17737 authored by Zac Wood's avatar Zac Wood
Browse files

Added fields to Course model

parent 8970cc67
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
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20180910213148) do ActiveRecord::Schema.define(version: 20180914141722) do
create_table "closures", force: :cascade do |t| create_table "closures", force: :cascade do |t|
t.date "date" t.date "date"
...@@ -49,6 +49,10 @@ ActiveRecord::Schema.define(version: 20180910213148) do ...@@ -49,6 +49,10 @@ ActiveRecord::Schema.define(version: 20180910213148) do
t.integer "semester_id" t.integer "semester_id"
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_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" t.index ["semester_id"], name: "index_courses_on_semester_id"
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment