mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
10 lines
310 B
Ruby
10 lines
310 B
Ruby
# frozen_string_literal:true
|
|
|
|
class AddDestroyingToAvailability < ActiveRecord::Migration[4.2]
|
|
def change
|
|
# this allow to prevent conflicts of 'delete cascade' by marking an availability
|
|
# as 'currently being destroyed'
|
|
add_column :availabilities, :destroying, :boolean, default: false
|
|
end
|
|
end
|