提交 8b9d217d 编写于 作者: Y yui-knk

Explicitly define `columns` method as an interface

`ActiveRecord::ConnectionAdapters::SchemaStatements#columns` is defined
here as an interface method here. So changes to raise `NotImplementedError`
same as `tables`, `views` ...etc.
上级 6162c49e
......@@ -92,7 +92,9 @@ def index_exists?(table_name, column_name, options = {})
# Returns an array of Column objects for the table specified by +table_name+.
# See the concrete implementation for details on the expected parameter values.
def columns(table_name) end
def columns(table_name)
raise NotImplementedError, "#columns is not implemented"
end
# Checks to see if a column exists in a given table.
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册