Module: ActiveRecord::Dbt::Factory::Table::YmlFactory

Defined in:
lib/active_record/dbt/factory/table/yml_factory.rb

Class Method Summary collapse

Class Method Details

.build(table_name) ⇒ Object



8
9
10
11
12
13
# File 'lib/active_record/dbt/factory/table/yml_factory.rb', line 8

def self.build(table_name)
  table_data_test = ActiveRecord::Dbt::Table::DataTest.new(table_name)
  columns = ActiveRecord::Dbt::Factory::Columns::YmlFactory.build(table_name)

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