Sha256: 09c3f6e806086b437d183e9424563f371facc1f04e5c103ca21d8afc7bd426ac
Contents?: true
Size: 621 Bytes
Versions: 19
Compression:
Stored size: 621 Bytes
Contents
require 'pact_broker/db' require 'pact_broker/domain/order_versions' module PactBroker module Domain class Version < Sequel::Model set_primary_key :id one_to_many :pacts associate(:many_to_one, :pacticipant, :class => "PactBroker::Domain::Pacticipant", :key => :pacticipant_id, :primary_key => :id) one_to_many :tags, :reciprocal => :version def after_create OrderVersions.(self.pacticipant_id) end def to_s "Version: number=#{number}, pacticipant=#{pacticipant_id}" end end Version.plugin :timestamps, :update_on_create=>true end end
Version data entries
19 entries across 19 versions & 1 rubygems