Sha256: d1a5b105fbdbe6acc1755f127dccb5d39efb85326e2789a17b3325d4e4cddf8f
Contents?: true
Size: 632 Bytes
Versions: 2
Compression:
Stored size: 632 Bytes
Contents
# # Copyright (c) 2011, SoundCloud Ltd., Rany Keddo, Tobias Bielohlawek, Tobias # Schmidt # require 'lhm/table' require 'lhm/intersection' module Lhm class Migration attr_reader :origin, :destination def initialize(origin, destination, time = Time.now) @origin = origin @destination = destination @start = time end def archive_name "lhma_#{ startstamp }_#{ @origin.name }" end def intersection Intersection.new(@origin, @destination) end private def startstamp @start.strftime "%Y_%m_%d_%H_%M_%S_#{ "%03d" % (@start.usec / 1000) }" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lhm-1.0.0.rc2 | lib/lhm/migration.rb |
lhm-1.0.0.rc.1 | lib/lhm/migration.rb |