method

tables

rails latest stable - Class: ActiveRecord::ConnectionAdapters::MysqlAdapter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

tables(name = nil, database = nil)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 589
      def tables(name = nil, database = nil) #:nodoc:
        result = execute(["SHOW TABLES", database].compact.join(' IN '), 'SCHEMA')
        tables = result.collect { |field| field[0] }
        result.free
        tables
      end