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