Class: ActiveRecord::ConnectionAdapters::ConnectionHandler
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::ConnectionHandler
- Defined in:
- lib/schema_migration_monitor/monitor.rb
Instance Method Summary collapse
- #establish_connection(name, spec) ⇒ Object
- #establish_connection_without_monitor ⇒ Object
- #monitor_migrations ⇒ Object
Instance Method Details
#establish_connection(name, spec) ⇒ Object
10 11 12 13 14 |
# File 'lib/schema_migration_monitor/monitor.rb', line 10 def establish_connection(name, spec) result = establish_connection_without_monitor(name,spec) monitor_migrations result end |
#establish_connection_without_monitor ⇒ Object
8 |
# File 'lib/schema_migration_monitor/monitor.rb', line 8 alias_method :establish_connection_without_monitor, :establish_connection |
#monitor_migrations ⇒ Object
16 17 18 |
# File 'lib/schema_migration_monitor/monitor.rb', line 16 def monitor_migrations SchemaMigrationMonitor::Monitor.new.execute end |