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