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.93.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.92.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.91.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.90.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.89.1 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.89.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.88.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.87.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.86.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.85.1 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.85.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.84.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.83.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.82.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.81.0 lib/pact_broker/deployments/currently_deployed_version_id.rb
pact_broker-2.80.0 lib/pact_broker/deployments/currently_deployed_version_id.rb