提交 278ee089 编写于 作者: J Jon Moss 提交者: GitHub

Merge pull request #26825 from orhantoy/fix-doc-code-indentation

[ci skip] Fix indentation of code examples
......@@ -475,7 +475,7 @@ def column(column_name, type, options = {})
# Checks to see if a column exists.
#
# t.string(:name) unless t.column_exists?(:name, :string)
# t.string(:name) unless t.column_exists?(:name, :string)
#
# See {connection.column_exists?}[rdoc-ref:SchemaStatements#column_exists?]
def column_exists?(column_name, type = nil, options = {})
......@@ -496,9 +496,9 @@ def index(column_name, options = {})
# Checks to see if an index exists.
#
# unless t.index_exists?(:branch_id)
# t.index(:branch_id)
# end
# unless t.index_exists?(:branch_id)
# t.index(:branch_id)
# end
#
# See {connection.index_exists?}[rdoc-ref:SchemaStatements#index_exists?]
def index_exists?(column_name, options = {})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册