method
tables
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::SchemaDumper
tables(stream)private
No documentation available.
# File activerecord/lib/active_record/schema_dumper.rb, line 93
def tables(stream)
@connection.tables.sort.each do |tbl|
next if ['schema_migrations', ignore_tables].flatten.any? do |ignored|
case ignored
when String; remove_prefix_and_suffix(tbl) == ignored
when Regexp; remove_prefix_and_suffix(tbl) =~ ignored
else
raise StandardError, 'ActiveRecord::SchemaDumper.ignore_tables accepts an array of String and / or Regexp values.'
end
end
table(tbl, stream)
end
end