summaryrefslogtreecommitdiff
path: root/db/post_migrate/20200313204021_validate_foreign_key_from_chat_name_to_service.rb
blob: fd9feab17dbb323aa33f321b1857a8b28c647279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class ValidateForeignKeyFromChatNameToService < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers
  DOWNTIME = false

  def up
    validate_foreign_key :chat_names, :service_id
  end

  def down
    # no-op
  end
end