Class: DBViewCTI::SQLGeneration::Migration::Factory
- Inherits:
-
Object
- Object
- DBViewCTI::SQLGeneration::Migration::Factory
- Defined in:
- lib/db_view_cti/sql_generation/migration/factory.rb
Class Method Summary collapse
Class Method Details
.generator(class_name, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/db_view_cti/sql_generation/migration/factory.rb', line 6 def self.generator(class_name, = {}) adapter_type = ActiveRecord::Base.configurations[Rails.env]['adapter'] case adapter_type when /postgresql/ PostgreSQL.new(class_name, ) else raise NotImplementedError, "DBViewCTI: Unknown adapter type '#{adapter_type}'" end end |