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