Module: Slowpoke::Migration
- Defined in:
- lib/slowpoke/migration.rb
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/slowpoke/migration.rb', line 3 def connection connection = super if Slowpoke.migration_statement_timeout && !@migration_statement_timeout_set connection.execute("SET statement_timeout = #{Slowpoke.migration_statement_timeout.to_i}") @migration_statement_timeout_set = true end connection end |