method
tables
v2.3.8 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::MysqlAdapter
tables(name = nil)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 439
def tables(name = nil) #:nodoc:
tables = []
result = execute("SHOW TABLES", name)
result.each { |field| tables << field[0] }
result.free
tables
end