method
table_exists?
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::Mysql2Adapter
table_exists?(name)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 432
def table_exists?(name)
return true if super
name = name.to_s
schema, table = name.split('.', 2)
unless table # A table was provided without a schema
table = schema
schema = nil
end
tables(nil, schema).include? table
end