Sha256: 262a1a3d9fbe817665329fafaf86e913f4350f2627514da88b2a498644fc1bef

Contents?: true

Size: 413 Bytes

Versions: 3

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module Dbt
    module Factory
      module TableFactory
        def self.build(table_name)
          table_test = ActiveRecord::Dbt::Table::Test.new(table_name)
          columns = ActiveRecord::Dbt::Factory::ColumnsFactory.build(table_name)

          ActiveRecord::Dbt::Table::Yml.new(table_name, table_test, columns)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activerecord-dbt-0.3.0 lib/active_record/dbt/factory/table_factory.rb
activerecord-dbt-0.2.0 lib/active_record/dbt/factory/table_factory.rb
activerecord-dbt-0.1.0 lib/active_record/dbt/factory/table_factory.rb