lib/pact_broker/models/version.rb in pact_broker-1.0.0 vs lib/pact_broker/models/version.rb in pact_broker-1.1.0
- old
+ new
@@ -1,6 +1,6 @@
-require 'sequel'
+require 'pact_broker/db'
require 'pact_broker/models/order_versions'
module PactBroker
module Models
@@ -17,7 +17,9 @@
def to_s
"Version: number=#{number}, pacticipant=#{pacticipant_id}"
end
end
+
+ Version.plugin :timestamps, :update_on_create=>true
end
end
\ No newline at end of file