Sequel.migration do
  change do

    # newer versions of sequel support drop_foreign_key but the version breaks tests
    if [:mysql2, :mysql].include?(adapter_scheme)
      run('alter table vms drop FOREIGN KEY vms_ibfk_1')
    elsif [:postgres].include?(adapter_scheme)
      run('alter table vms drop constraint vms_deployment_id_fkey')
    end

  end
end

Remove fkey constraint so that deployment can be deleted for existing deployments
Remove fkey constraint so that deployment can be deleted for existing deployments

[#112100849](https://www.pivotaltracker.com/story/show/112100849)

Signed-off-by: William Lindner <07e881a60bf9e51606643ece30b1d2ad0de68928@pivotal.io>
