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.72.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.71.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.70.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.69.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.68.1 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.68.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.67.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.66.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.65.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.64.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.63.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.62.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.61.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.60.1 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.60.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.59.2 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.59.1 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.59.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.58.3 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.58.2 lib/pact_broker/tags/tag_with_latest_flag.rb