Merge pull request #26825 from orhantoy/fix-doc-code-indentation
[ci skip] Fix indentation of code examples
This commit is contained in:
commit
278ee089e6
@ -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 = {})
|
||||
|
Loading…
Reference in New Issue
Block a user