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.24.0 lib/pact_broker/domain/tag.rb
pact_broker-2.23.4 lib/pact_broker/domain/tag.rb
pact_broker-2.23.3 lib/pact_broker/domain/tag.rb
pact_broker-2.23.2 lib/pact_broker/domain/tag.rb
pact_broker-2.23.1 lib/pact_broker/domain/tag.rb
pact_broker-2.23.0 lib/pact_broker/domain/tag.rb
pact_broker-2.22.0 lib/pact_broker/domain/tag.rb
pact_broker-2.21.0 lib/pact_broker/domain/tag.rb
pact_broker-2.20.0 lib/pact_broker/domain/tag.rb
pact_broker-2.19.2 lib/pact_broker/domain/tag.rb
pact_broker-2.19.1 lib/pact_broker/domain/tag.rb
pact_broker-2.19.0 lib/pact_broker/domain/tag.rb
pact_broker-2.18.0 lib/pact_broker/domain/tag.rb
pact_broker-2.17.1 lib/pact_broker/domain/tag.rb
pact_broker-2.17.0 lib/pact_broker/domain/tag.rb
pact_broker-2.16.1 lib/pact_broker/domain/tag.rb
pact_broker-2.16.0 lib/pact_broker/domain/tag.rb
pact_broker-2.15.0 lib/pact_broker/domain/tag.rb
pact_broker-2.14.0 lib/pact_broker/domain/tag.rb
pact_broker-2.13.1 lib/pact_broker/domain/tag.rb