1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/db/migrate/20170227114634_add_destroying_to_slot.rb

10 lines
284 B
Ruby
Raw Normal View History

# frozen_string_literal:true
class AddDestroyingToSlot < ActiveRecord::Migration[4.2]
def change
# this allow to prevent conflicts of 'delete cascade' by marking a slot
# as 'currently being destroyed'
add_column :slots, :destroying, :boolean, default: false
end
end