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

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

Instance Method Summary collapse

Instance Method Details

#disable_transactions!Object



88
89
90
# File 'lib/active_graph/migrations/helpers.rb', line 88

def disable_transactions!
  @disable_transactions = true
end

#transaction?Boolean

Returns:

  • (Boolean)


92
93
94
# File 'lib/active_graph/migrations/helpers.rb', line 92

def transaction?
  !@disable_transactions
end