instance method
table_exists?
Ruby on Rails 2.3.18
Since v2.2.3Signature
table_exists?(table_name)
def tables(name = nil) end
Parameters
-
table_namereq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 18
def table_exists?(table_name)
tables.include?(table_name.to_s)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::SchemaStatements