Sha256: 4f7d9ffa14b0bfa4fe1f175d243a10cee26a08a24a6075755dadbd3d287e983e

Contents?: true

Size: 503 Bytes

Versions: 29

Compression:

Stored size: 503 Bytes

Contents

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

module PactBroker

  module Domain
    class Tag < Sequel::Model

      dataset_module do
        include PactBroker::Repositories::Helpers
      end

      unrestrict_primary_key

      associate(:many_to_one, :version, :class => "PactBroker::Domain::Version", :key => :version_id, :primary_key => :id)

      def <=> other
        name <=> other.name
      end

    end

    Tag.plugin :timestamps, :update_on_create=>true
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
pact_broker-2.13.0 lib/pact_broker/domain/tag.rb
pact_broker-2.12.0 lib/pact_broker/domain/tag.rb
pact_broker-2.11.0 lib/pact_broker/domain/tag.rb
pact_broker-2.10.0 lib/pact_broker/domain/tag.rb
pact_broker-2.9.0 lib/pact_broker/domain/tag.rb
pact_broker-2.9.0.beta.5 lib/pact_broker/domain/tag.rb
pact_broker-2.8.0.beta.5 lib/pact_broker/domain/tag.rb
pact_broker-2.8.0.beta.4 lib/pact_broker/domain/tag.rb
pact_broker-2.7.0.beta.3 lib/pact_broker/domain/tag.rb