Module: Cardio::Migration::Stamp

Included in:
Cardio::Migration
Defined in:
card/lib/cardio/migration/stamp.rb

Overview

methods for stamping migration versions to files

Instance Method Summary collapse

Instance Method Details

#stampObject



5
6
7
8
9
10
11
# File 'card/lib/cardio/migration/stamp.rb', line 5

def stamp
  mode do
    return unless (version = stampable_version) && (file = stamp_file)
    puts ">>  writing version: #{version} to #{file.path}"
    file.puts version
  end
end