Sha256: db6ddb4e24c675b5cdaa8e528e6633866d62ab64dc6a6be4e1f9322a794b3dae
Contents?: true
Size: 797 Bytes
Versions: 7
Compression:
Stored size: 797 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) associate(:many_to_one, :version, :class => "PactBroker::Domain::Version", :key => :version_id, :primary_key => :id) 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
7 entries across 7 versions & 1 rubygems