plentz/lol_dba

View on GitHub
lib/lol_dba/index_finding/relation_inspector_factory.rb

Summary

Maintainability
A
0 mins
Test Coverage
module LolDba
  class RelationInspectorFactory
    TYPES = {
      belongs_to: BelongsTo,
      has_and_belongs_to_many: HasAndBelongsToMany,
      has_many: HasMany
    }.freeze

    def self.for(type)
      TYPES[type]
    end
  end
end