working on adding time to schedule

This commit is contained in:
Jared Cosulich 2017-04-12 21:32:36 -04:00
parent 284fc73f78
commit 061a3b9fde
8 changed files with 56 additions and 9 deletions

View file

@ -0,0 +1,5 @@
class AddTimeToSchedule < ActiveRecord::Migration[5.0]
def change
add_column :schedules, :time, :integer, default: 960
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170405183356) do
ActiveRecord::Schema.define(version: 20170412204724) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -127,6 +127,7 @@ ActiveRecord::Schema.define(version: 20170405183356) do
t.integer "question_list_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "time", default: 960
t.index ["school_id"], name: "index_schedules_on_school_id", using: :btree
end