Sha256: 541f068a474365ad0195ad4de332701295925c2e07b6ce476b5e18803ec41537

Contents?: true

Size: 1.23 KB

Versions: 46

Compression:

Stored size: 1.23 KB

Contents

require 'pact_broker/pacts/all_pact_publications'
require 'pact_broker/repositories/helpers'

module PactBroker
  module Pacts
    class LatestPactPublicationIdForConsumerVersion < Sequel::Model(:latest_pact_publication_ids_for_consumer_versions)

      unrestrict_primary_key

      dataset_module do
        include PactBroker::Repositories::Helpers
      end

      def upsert
        self.class.upsert(to_hash, [:provider_id, :consumer_version_id])
      end
    end
  end
end

# Table: latest_pact_publications_by_consumer_versions
# Columns:
#  id                      | integer                     |
#  consumer_id             | integer                     |
#  consumer_name           | text                        |
#  consumer_version_id     | integer                     |
#  consumer_version_number | text                        |
#  consumer_version_order  | integer                     |
#  provider_id             | integer                     |
#  provider_name           | text                        |
#  revision_number         | integer                     |
#  pact_version_id         | integer                     |
#  pact_version_sha        | text                        |
#  created_at              | timestamp without time zone |

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
pact_broker-2.27.3 lib/pact_broker/pacts/latest_pact_publication_id_by_consumer_version.rb
pact_broker-2.27.2 lib/pact_broker/pacts/latest_pact_publication_id_by_consumer_version.rb
pact_broker-2.27.0 lib/pact_broker/pacts/latest_pact_publication_id_by_consumer_version.rb
pact_broker-2.26.1 lib/pact_broker/pacts/latest_pact_publication_id_by_consumer_version.rb
pact_broker-2.26.0 lib/pact_broker/pacts/latest_pact_publication_id_by_consumer_version.rb
pact_broker-2.25.0 lib/pact_broker/pacts/latest_pact_publication_id_by_consumer_version.rb