Class: ActiveRecord::ConnectionAdapters::ConnectionHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/schema_migration_monitor/monitor.rb

Instance Method Summary collapse

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_monitorObject



8
# File 'lib/schema_migration_monitor/monitor.rb', line 8

alias_method :establish_connection_without_monitor, :establish_connection

#monitor_migrationsObject



16
17
18
# File 'lib/schema_migration_monitor/monitor.rb', line 16

def monitor_migrations
  SchemaMigrationMonitor::Monitor.new.execute
end