method
table_comment
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters
table_comment(table_name)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 284
def table_comment(table_name) # :nodoc:
scope = quoted_scope(table_name)
query_value( SELECT table_comment FROM information_schema.tables WHERE table_schema = #{scope[:schema]} AND table_name = #{scope[:name]}.strip_heredoc, "SCHEMA").presence
end