Module: SwitchmanInstJobs::GuardRail::ClassMethods

Defined in:
lib/switchman_inst_jobs/guard_rail.rb

Instance Method Summary collapse

Instance Method Details

#activate(env, &block) ⇒ Object


4
5
6
7
8
9
10
# File 'lib/switchman_inst_jobs/guard_rail.rb', line 4

def activate(env, &block)
  if ::ActiveRecord::Migration.open_migrations.positive?
    yield
  else
    super
  end
end