You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
474 B
19 lines
474 B
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, default: 24
|
|
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
|