Sha256: 9bb17e75230ab45e70fb94fb014e3e21d2f6a53e44030186dab604dfcd428880

Contents?: true

Size: 789 Bytes

Versions: 1

Compression:

Stored size: 789 Bytes

Contents

# frozen_string_literal: true

require 'model'

class Organization < Model
  has_many :builds_for_that_this_organization_is_owner, as: :owner, class_name: 'Build'
  has_many :builds_for_that_this_organization_is_sender, as: :sender, class_name: 'Build'
  has_many :repositories, as: :owner
  has_many :jobs, as: :owner
  has_many :requests_for_that_this_organization_is_owner, as: :owner, class_name: 'Request'
  has_many :abuses, as: :owner
  has_many :subscriptions, as: :owner
  has_many :owner_groups, as: :owner
  has_many :trials, as: :owner
  has_many :trial_allowances, as: :creator
  has_many :broadcasts, as: :recipient
  has_many :requests_for_that_this_organization_is_sender, as: :sender, class_name: 'Request'
  has_many :memberships

  self.table_name = 'organizations'
end

Version data entries

1 entries across 1 versions & 1 rubygems

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