working on schedules

This commit is contained in:
Jared Cosulich 2017-03-06 11:35:29 -05:00
parent 72418edd7c
commit 2fb55a7443
26 changed files with 726 additions and 1 deletions

View file

@ -0,0 +1,18 @@
class CreateSchedules < ActiveRecord::Migration[5.0]
def change
create_table :schedules do |t|
t.references :school, foreign_key: true
t.string :name
t.text :description
t.integer :frequency_hours
t.date :start_date
t.date :end_date
t.boolean :active, default: true
t.boolean :random, default: false
t.integer :recipient_list_id
t.integer :question_list_id
t.timestamps
end
end
end