1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/db/migrate/20230113145632_add_not_null_to_slots_reservation.rb
2023-02-15 10:29:54 +01:00

12 lines
448 B
Ruby

# frozen_string_literal: true
# From this migration, the slot_id and reservation_id of the SlotsReservation won't be allowed to be null,
# otherwise this could result in error
class AddNotNullToSlotsReservation < ActiveRecord::Migration[5.2]
def change
change_column_null :slots_reservations, :slot_id, false
change_column_null :slots_reservations, :reservation_id, false
change_column_null :slots, :availability_id, false
end
end