Module: DbBlaster::AvailableTables

Included in:
Finder, SourceTableConfigurationBuilder
Defined in:
lib/db_blaster/available_tables.rb

Overview

Finds all tables in current database and removes the “system tables”

Constant Summary collapse

SYSTEM_TABLES =
%w[schema_migrations ar_internal_metadata].freeze

Instance Method Summary collapse

Instance Method Details

#available_tablesObject



8
9
10
# File 'lib/db_blaster/available_tables.rb', line 8

def available_tables
  @available_tables ||= ActiveRecord::Base.connection.tables - SYSTEM_TABLES
end