Skip to content

Commit

Permalink
Update lib/ecto/migration.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-rychlewski authored Jun 19, 2024
1 parent e8ce63c commit 6e7f49c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ecto/migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,8 @@ defmodule Ecto.Migration do
If the expression is a column name, it will not be quoted. This may cause issues
when the column is named after a reserved word. Consider using an atom instead.
For example, the name `offset` is reserved in many databases so the following
could produce an error: `create index("products", ["offset"])`
"""
def index(table, columns, opts \\ [])

Expand Down

0 comments on commit 6e7f49c

Please sign in to comment.