debian-mirror-gitlab/db/post_migrate/20200313204021_validate_foreign_key_from_chat_name_to_service.rb
2020-04-22 19:07:51 +05:30

15 lines
272 B
Ruby

# 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