Class: Ridgepole::ConnectionAdapters
- Inherits:
-
Object
- Object
- Ridgepole::ConnectionAdapters
- Defined in:
- lib/ridgepole/connection_adapters.rb
Class Method Summary collapse
Class Method Details
.mysql? ⇒ Boolean
5 6 7 |
# File 'lib/ridgepole/connection_adapters.rb', line 5 def self.mysql? defined?(ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter) && ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter) end |
.postgresql? ⇒ Boolean
9 10 11 |
# File 'lib/ridgepole/connection_adapters.rb', line 9 def self.postgresql? defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) && ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) end |