suitepro/plugins/redmine_git_hosting/app/models/github_issue.rb

9 lines
210 B
Ruby

class GithubIssue < ActiveRecord::Base
## Relations
belongs_to :issue
## Validations
validates :github_id, presence: true
validates :issue_id, presence: true, uniqueness: { scope: :github_id }
end