text: exports.up = function(knex) {
    return knex.schema.alterTable('range_supervision_history', history => {
      history.dropForeign('scheduled_range_supervision_id')
      history.foreign('scheduled_range_supervision_id')
        .references('id')
        .inTable('scheduled_range_supervision')
        .onDelete('cascade')
    })
  }
  
  exports.down = function(knex) {
    return knex.schema.alterTable('range_supervision_history', history => {
      history.dropForeign('scheduled_range_supervision_id')
      history.foreign('scheduled_range_supervision_id')
        .references('id')
        .inTable('scheduled_range_supervision')
    })
  }
  