method
tables
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::SQLite3Adapter
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.
tables(name = nil)public
SCHEMA STATEMENTS ========================================
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 249
def tables(name = nil) # :nodoc:
ActiveSupport::Deprecation.warn( #tables currently returns both tables and views. This behavior is deprecated and will be changed with Rails 5.1 to only return tables. Use #data_sources instead..squish)
if name
ActiveSupport::Deprecation.warn( Passing arguments to #tables is deprecated without replacement..squish)
end
data_sources
end Related methods
- Instance methods
- active?
- add_column
- allowed_index_name_length
- arel_visitor
- begin_db_transaction
- change_column
- change_column_default
- change_column_null
- clear_cache!
- columns
- commit_db_transaction
- data_source_exists?
- data_sources
- disconnect!
- encoding
- exec_delete
- exec_query
- exec_rollback_db_transaction
- exec_update
- execute
- explain
- indexes
- last_inserted_id
- native_database_types
- primary_keys
- remove_column
- remove_index
- rename_column
- rename_table
- requires_reloading?
- schema_creation
- supports_datetime_with_precision?
- supports_ddl_transactions?
- supports_explain?
- supports_index_sort_order?
- supports_migrations?
- supports_multi_insert?
- supports_partial_index?
- supports_primary_key?
- supports_savepoints?
- supports_statement_cache?
- supports_views?
- table_exists?
- tables
- valid_alter_table_type?
- valid_type?
- view_exists?
- views
- Class methods
- new
- Protected methods
-
alter_table -
copy_table -
copy_table_contents -
copy_table_indexes -
move_table -
sqlite_version -
table_structure -
translate_exception - Private methods
-
table_structure_with_collation