Sha256: 74c4950b38f5d8438bd729baf8197d39dc6b5ff5f08b8f63a2a43db2a33f1143
Contents?: true
Size: 448 Bytes
Versions: 55
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true require "symbiont" Sequel::SimpleMigration.prepend(Module.new do def apply(db, direction) # :nocov: unless [:up, :down].include?(direction) # NOTE: original code raise(ArgumentError, "Invalid migration direction specified (#{direction.inspect})") end # :nocov: # NOTE: our extension prok = public_send(direction) Symbiont::Executor.evaluate_private(db, &prok) if prok end end)
Version data entries
55 entries across 55 versions & 1 rubygems