Sha256: ee55c3984f41264d7d04d40f25e0eb8f228d43a489c6779eec9df5a37915f217

Contents?: true

Size: 674 Bytes

Versions: 23

Compression:

Stored size: 674 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

23 entries across 23 versions & 1 rubygems

Version Path
pact_broker-2.40.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.39.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.38.1 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.38.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.37.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.36.1 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.36.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.35.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.34.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.33.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.32.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.31.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.30.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.29.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.27.6 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.27.5 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.27.4 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.27.3 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.27.2 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.27.0 lib/pact_broker/tags/tag_with_latest_flag.rb