Module: ActiveGraph::Migrations::Helpers::ClassMethods

Defined in:
lib/active_graph/migrations/helpers.rb

Instance Method Summary collapse

Instance Method Details

#disable_transactions!Object



95
96
97
# File 'lib/active_graph/migrations/helpers.rb', line 95

def disable_transactions!
  @disable_transactions = true
end

#transaction?Boolean

Returns:

  • (Boolean)


99
100
101
# File 'lib/active_graph/migrations/helpers.rb', line 99

def transaction?
  !@disable_transactions
end