mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
working on schedules
This commit is contained in:
parent
72418edd7c
commit
2fb55a7443
26 changed files with 726 additions and 1 deletions
18
db/migrate/20170306145359_create_schedules.rb
Normal file
18
db/migrate/20170306145359_create_schedules.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue