instance method table_exists?

Ruby on Rails 5.0.7.2

Since v4.0.13 Last seen in v5.0.7.2

Available in: v4.0.13 v4.1.16 v4.2.11.3 v5.0.7.2

Signature

table_exists?(table_name)

No documentation comment.

Parameters

table_name req
Source
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 269
      def table_exists?(table_name)
        ActiveSupport::Deprecation.warn(<<-MSG.squish)
          #table_exists? currently checks both tables and views.
          This behavior is deprecated and will be changed with Rails 5.1 to only check tables.
          Use #data_source_exists? instead.
        MSG

        data_source_exists?(table_name)
      end

Defined in activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb line 269 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::SQLite3Adapter

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close