def trigger_rollback(user = AnonymousUser.new, env: nil, force: false)
      rollback = build_rollback(user, env: env, force: force)
      rollback.save!
      rollback.enqueue

      lock_reason = "A rollback for #{rollback.since_commit.sha} has been triggered. " \
        "Please make sure the reason for the rollback has been addressed before deploying again."
      stack.update!(lock_reason: lock_reason, lock_author_id: user.id)

      rollback
    end
def trigger_rollback(user = AnonymousUser.new, env: nil, force: false)
      rollback = build_rollback(user, env: env, force: force)
      rollback.save!
      rollback.enqueue

      lock_reason = "A rollback for #{rollback.since_commit.sha} has been triggered. " \
        "Please make sure the reason for the rollback has been addressed before deploying again."
      stack.update!(lock_reason: lock_reason, lock_author_id: user.id)

      rollback
    end
Rolls the stack back to this deploy