module SchemaMonkey::ActiveRecord::ConnectionAdapters::AbstractAdapter

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/schema_monkey/active_record.rb, line 7
def initialize(*args)
  dbm = case adapter_name
        when /^MySQL/i                 then :Mysql
        when 'PostgreSQL', 'PostGIS'   then :PostgreSQL
        when 'SQLite'                  then :SQLite3
        end
  SchemaMonkey.insert(dbm: dbm)

  super
end