Sha256: 23cafe0014201df1a5996deed66a1b4f418d89eeb1241a8df62ea3d0c12e7921

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

require 'model'
require 'models/repository'

class Request < Model
  belongs_to :owner, polymorphic: true
  belongs_to :sender, polymorphic: true
  belongs_to :repository
  belongs_to :branch
  belongs_to :pull_request
  belongs_to :tag
  belongs_to :commit
  has_many :abuses
  has_many :messages, as: :subject
  has_many :jobs, as: :source
  has_many :builds

  self.table_name = 'requests'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
travis-backup-0.3.0 lib/models/request.rb