Codeminer42/cm42-central

View on GitHub
app/models/integration.rb

Summary

Maintainability
A
0 mins
Test Coverage
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