Module: SchemaMonkey::ActiveRecord::ConnectionAdapters::AbstractAdapter
- Defined in:
- lib/schema_monkey/active_record.rb
Instance Method Summary collapse
Instance Method Details
#initialize(*args) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# 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 |