app/models/integration.rb
class Integration < ApplicationRecord
VALID_INTEGRATIONS = %w[discord mattermost slack gitlab].freeze
belongs_to :project
validates :project, presence: true
validates :kind, inclusion: { in: VALID_INTEGRATIONS }, presence: true
validates :data, presence: true
end