mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
12 lines
448 B
Ruby
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
|