Module: ActiveRecord::Dbt::Factory::Tables::YmlFactory

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

Class Method Summary collapse

Class Method Details

.buildObject



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

def self.build
  config = ActiveRecord::Dbt::Config.instance
  table_names = ActiveRecord::Base.connection.tables - config.exclude_table_names

  table_names.sort.map do |table_name|
    ActiveRecord::Dbt::Factory::Table::YmlFactory.build(table_name)
  end
end