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

9 lines
216 B
Ruby

class GithubComment < ActiveRecord::Base
## Relations
belongs_to :journal
## Validations
validates :github_id, presence: true
validates :journal_id, presence: true, uniqueness: { scope: :github_id }
end