1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/db/migrate/20160119131623_add_destroying_to_availability.rb

8 lines
275 B
Ruby
Raw Normal View History

2016-03-23 18:39:41 +01:00
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