lib/pg_trunk/core/registry.rb
# Delete all objects which are absent in system catalogs
# (they could be deleted either explicitly, or through
# the cascade dependencies clearance).
Delete all objects which are absent in system catalogs
(they could be deleted either explicitly, or through
the cascade dependencies clearance).
Delete all objects which are absent in system catalogs ( they could be deleted either explicitly or through the cascade dependencies clearance ) .
def forget_dropped_objects
        catalogs.map do |tbl|
          <<~SQL.squish
            DELETE FROM #{table_name}
            WHERE classid = '#{tbl}'::regclass
              AND oid NOT IN (SELECT oid FROM #{tbl});
          SQL
        end
      end
def forget_dropped_objects catalogs . map do | tbl | <<~SQL . squish 
            DELETE FROM  #{ table_name } 
            WHERE classid = ' #{ tbl } '::regclass
              AND oid NOT IN (SELECT oid FROM  #{ tbl } );
           SQL end end
Delete all objects which are absent in system catalogs
(they could be deleted either explicitly, or through
the cascade dependencies clearance).
Delete all objects which are absent in system catalogs ( they could be deleted either explicitly or through the cascade dependencies clearance ) .