Module: Boutons::Rails::Database
- Defined in:
- lib/boutons/rails/database.rb
Class Method Summary collapse
Class Method Details
.mysql ⇒ Object
13 14 15 |
# File 'lib/boutons/rails/database.rb', line 13 def self.mysql Synapse::Easy::Service.new application: :mysql end |
.postgresql ⇒ Object
10 11 12 |
# File 'lib/boutons/rails/database.rb', line 10 def self.postgresql Synapse::Easy::Service.new application: :postgresql end |
.synapse ⇒ Object
6 7 8 9 |
# File 'lib/boutons/rails/database.rb', line 6 def self.synapse return postgresql if defined? :PG return mysql if defined? :Mysql2 end |