APIdock / Ruby on Rails
/
Browse About
method

table_exists?

v3.0.9 - Show latest stable - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
table_exists?(table_name)
public

def tables(name = nil) end

# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 20
      def table_exists?(table_name)
        tables.include?(table_name.to_s)
      end

Related methods

  • Instance methods
  • add_column
  • add_column_options!
  • add_index
  • add_timestamps
  • assume_migrated_upto_version
  • change_column
  • change_column_default
  • change_table
  • column_exists?
  • columns
  • create_table
  • distinct
  • drop_table
  • dump_schema_information
  • index_exists?
  • index_name
  • index_name_exists?
  • initialize_schema_migrations_table
  • native_database_types
  • remove_column
  • remove_columns
  • remove_index
  • remove_index!
  • remove_timestamps
  • rename_column
  • rename_index
  • rename_table
  • structure_dump
  • table_alias_for
  • table_exists?
  • type_to_sql
  • Protected methods
  • protectedoptions_include_default?
  • protectedquoted_columns_for_index
APIdock API Documentation Browser

© 2026 APIdock