Sha256: 86b2dd0a8f0fe6395cbc09fc46037566d9ed1824cc427f087275dd19219fa89f
Contents?: true
Size: 397 Bytes
Versions: 5
Compression:
Stored size: 397 Bytes
Contents
# -*- coding: utf-8 -*- # =Batch Manager= # =created_at: <%= Time.now.strftime "%Y-%m-%d %H:%M:%S" %> # =times_limit: 1 # =auto_run: false wet_run = (ARGV[0] == "wet" || @wet) ActiveRecord::Base.connection.with_standby do ActiveRecord::Base.transaction do if wet_run p "Wet run completed!" else p "Rolling back." raise ActiveRecord::Rollback end end end
Version data entries
5 entries across 5 versions & 1 rubygems