instance method
tables
Ruby on Rails 6.1.7.10
Since v5.2.8.1Signature
tables()
Returns an array of table names defined in the database.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 51
def tables
query_values(data_source_sql(type: "BASE TABLE"), "SCHEMA")
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb line 51
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::SchemaStatements