Sha256: bc567f5a6bac33c7e7bf4ce5d8f33454d9b69ff27afe9c3c62d7bfcd3bc3913c

Contents?: true

Size: 1.25 KB

Versions: 17

Compression:

Stored size: 1.25 KB

Contents

require "pact_broker/db"
require "pact_broker/repositories/helpers"

module PactBroker
  module Versions
    class Branch < Sequel::Model(:branches)
      plugin :timestamps, update_on_create: true
      plugin :insert_ignore, identifying_columns: [:name, :pacticipant_id]

      associate(:many_to_one, :pacticipant, :class => "PactBroker::Domain::Pacticipant", :key => :pacticipant_id, :primary_key => :id)
    end
  end
end

# Table: branches
# Columns:
#  id             | integer                     | PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY
#  name           | text                        |
#  pacticipant_id | integer                     | NOT NULL
#  created_at     | timestamp without time zone | NOT NULL
#  updated_at     | timestamp without time zone | NOT NULL
# Indexes:
#  branches_pkey                      | PRIMARY KEY btree (id)
#  branches_pacticipant_id_name_index | UNIQUE btree (pacticipant_id, name)
# Foreign key constraints:
#  branches_pacticipant_id_fkey | (pacticipant_id) REFERENCES pacticipants(id) ON DELETE CASCADE
# Referenced By:
#  branch_heads    | branch_heads_branch_id_fkey | (branch_id) REFERENCES branches(id) ON DELETE CASCADE
#  branch_versions | branch_versions_branches_fk | (branch_id) REFERENCES branches(id) ON DELETE CASCADE

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pact_broker-2.94.0 lib/pact_broker/versions/branch.rb
pact_broker-2.93.4 lib/pact_broker/versions/branch.rb
pact_broker-2.93.3 lib/pact_broker/versions/branch.rb
pact_broker-2.93.2 lib/pact_broker/versions/branch.rb
pact_broker-2.93.1 lib/pact_broker/versions/branch.rb
pact_broker-2.93.0 lib/pact_broker/versions/branch.rb
pact_broker-2.92.0 lib/pact_broker/versions/branch.rb
pact_broker-2.91.0 lib/pact_broker/versions/branch.rb
pact_broker-2.90.0 lib/pact_broker/versions/branch.rb
pact_broker-2.89.1 lib/pact_broker/versions/branch.rb
pact_broker-2.89.0 lib/pact_broker/versions/branch.rb
pact_broker-2.88.0 lib/pact_broker/versions/branch.rb
pact_broker-2.87.0 lib/pact_broker/versions/branch.rb
pact_broker-2.86.0 lib/pact_broker/versions/branch.rb
pact_broker-2.85.1 lib/pact_broker/versions/branch.rb
pact_broker-2.85.0 lib/pact_broker/versions/branch.rb
pact_broker-2.84.0 lib/pact_broker/versions/branch.rb