yamotech/activerecord-dbt

View on GitHub
lib/active_record/dbt/table/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module ActiveRecord
  module Dbt
    module Table
      module Base
        include ActiveRecord::Dbt::Validation::TableNameValidator

        attr_reader :table_name

        def initialize(table_name)
          @config = ActiveRecord::Dbt::Config.instance
          @table_name = validate_table_name(table_name, @config)
        end
      end
    end
  end
end