Skip to content

Commit

Permalink
chore: add released_versions to Version
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Feb 22, 2023
1 parent 32fa172 commit 51ef24b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pact_broker/domain/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class Version < Sequel::Model(Sequel::Model.db[:versions].select(*VERSION_COLUMN
end

one_to_many :deployed_versions, class: "PactBroker::Deployments::DeployedVersion", key: :version_id, primary_key: :id, order: [:created_at, :id]
one_to_many :released_versions, class: "PactBroker::Deployments::ReleasedVersion", key: :version_id, primary_key: :id, order: [:created_at, :id]

many_to_one :latest_version_for_pacticipant, read_only: true, key: :id,
class: Version,
Expand Down

0 comments on commit 51ef24b

Please sign in to comment.