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
......@@ -10,7 +10,7 @@
# 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| "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"
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