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.58.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.57.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.56.1 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.56.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.55.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.54.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.53.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.52.2 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.52.1 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.52.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.51.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.50.1 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.50.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.49.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.48.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.47.1 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.47.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.46.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.45.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb
pact_broker-2.44.0 lib/pact_broker/pacts/latest_pact_publication_id_for_consumer_version.rb