method

foreign_table_exists?

Importance_0
v7.0.0 - Show latest stable - 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 520
        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.