lib/torque/postgresql/adapter/schema_dumper.rb in torque-postgresql-2.0.3 vs lib/torque/postgresql/adapter/schema_dumper.rb in torque-postgresql-2.0.4

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Torque module PostgreSQL module Adapter module SchemaDumper def dump(stream) # :nodoc: @@ -37,10 +39,10 @@ column.sql_type.to_sym.inspect if column.type == :enum || column.type == :enum_set end def tables(stream) # :nodoc: inherited_tables = @connection.inherited_tables - sorted_tables = @connection.data_sources.sort - @connection.views + sorted_tables = @connection.tables.sort - @connection.views stream.puts " # These are the common tables managed" (sorted_tables - inherited_tables.keys).each do |table_name| table(table_name, stream) unless ignored?(table_name) end