Sha256: 5cf4541a8c1ea740900b463fed487705151d387d29c28008c0643f71c7cf2463

Contents?: true

Size: 504 Bytes

Versions: 13

Compression:

Stored size: 504 Bytes

Contents

module DBViewCTI
  module SQLGeneration
    module Migration
      class Factory
        
        def self.generator(class_name, options = {})
          adapter_type = ActiveRecord::Base.configurations[Rails.env]['adapter']
          case adapter_type
          when /postgresql/
            PostgreSQL.new(class_name, options)
          else
            raise NotImplementedError, "DBViewCTI: Unknown adapter type '#{adapter_type}'"
          end        
        end
        
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dbview_cti-0.2.3 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.2.2 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.2.1 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.2.0 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.1.5 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.1.4 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.1.3 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.1.2 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.1.1 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.1.0 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.0.3 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.0.2 lib/db_view_cti/sql_generation/migration/factory.rb
dbview_cti-0.0.1 lib/db_view_cti/sql_generation/migration/factory.rb