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