Sha256: 2e1c833c069fb5962dda346f2e099e1511f389bcdad21d94d4b9594e2a1b8584

Contents?: true

Size: 1.29 KB

Versions: 36

Compression:

Stored size: 1.29 KB

Contents

require "sequel"
require "pact_broker/repositories/helpers"

module PactBroker
  module Deployments
    class CurrentlyDeployedVersionId < Sequel::Model
      plugin :upsert, identifying_columns: [:pacticipant_id, :environment_id, :target_for_index]

      dataset_module do
        include PactBroker::Repositories::Helpers
      end
    end
  end
end

# Table: currently_deployed_version_ids
# Columns:
#  id                  | integer | PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY
#  target_for_index    | text    | NOT NULL
#  pacticipant_id      | integer | NOT NULL
#  environment_id      | integer | NOT NULL
#  version_id          | integer | NOT NULL
#  deployed_version_id | integer | NOT NULL
# Indexes:
#  currently_deployed_version_ids_pkey                             | PRIMARY KEY btree (id)
#  currently_deployed_version_pacticipant_environment_target_index | UNIQUE btree (pacticipant_id, environment_id, target_for_index)
# Foreign key constraints:
#  currently_deployed_version_ids_environment_id_fkey | (environment_id) REFERENCES environments(id) ON DELETE CASCADE
#  currently_deployed_version_ids_pacticipant_id_fkey | (pacticipant_id) REFERENCES pacticipants(id) ON DELETE CASCADE
#  currently_deployed_version_ids_version_id_fkey     | (version_id) REFERENCES versions(id) ON DELETE CASCADE

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
pact_broker-2.106.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.105.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.104.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.103.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.102.2 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.102.1 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.102.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.101.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.100.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.99.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.98.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.97.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.96.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.95.1 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.95.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.94.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.93.4 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.93.3 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.93.2 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.93.1 lib/pact_broker/deployments/currently_deployed_version_id.rb