1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/db/migrate/20230124094255_add_auto_cancel_to_trainings.rb

15 lines
437 B
Ruby

# frozen_string_literal: true
# From this migration, we allows auto-cancellation of trainings
# if a minimum number of user are not registred, X hours before the
# beginning of the training
class AddAutoCancelToTrainings < ActiveRecord::Migration[5.2]
def change
change_table :trainings, bulk: true do |t|
t.boolean :auto_cancel
t.integer :auto_cancel_threshold
t.integer :auto_cancel_deadline
end
end
end