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