method

foreign_table_exists?

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: SchemaStatements
foreign_table_exists?(table_name) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 587
        def foreign_table_exists?(table_name)
          query_values(data_source_sql(table_name, type: "FOREIGN TABLE"), "SCHEMA").any? if table_name.present?
        end
Register or log in to add new notes.