Sha256: cf306e840f4970be476c2e2cd4bcc768b2485700f74e005c903d9fb25b8c6ca0

Contents?: true

Size: 673 Bytes

Versions: 43

Compression:

Stored size: 673 Bytes

Contents

require 'pact_broker/db'
require 'pact_broker/repositories/helpers'

module PactBroker
  module Tags
    # The tag associated with the latest verification for a given tag
    class TagWithLatestFlag < Sequel::Model(:tags_with_latest_flag)
      dataset_module do
        include PactBroker::Repositories::Helpers
      end

      def latest?
        !values[:latest].nil?
      end
    end
  end
end

# Table: tags_with_latest_flag
# Columns:
#  name       | text                        |
#  version_id | integer                     |
#  created_at | timestamp without time zone |
#  updated_at | timestamp without time zone |
#  latest     | integer                     |

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
pact_broker-2.43.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.42.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.41.0 lib/pact_broker/tags/tag_with_latest_flag.rb