debian-mirror-gitlab/app/models/issue/email.rb

11 lines
275 B
Ruby
Raw Normal View History

2022-01-26 12:08:38 +05:30
# frozen_string_literal: true
class Issue::Email < ApplicationRecord
self.table_name = 'issue_emails'
belongs_to :issue
validates :email_message_id, uniqueness: true, presence: true, length: { maximum: 1000 }
validates :issue, presence: true, uniqueness: true
end