We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e7a49e commit e57c91aCopy full SHA for e57c91a
1 file changed
lib/ecto/migration.ex
@@ -396,7 +396,7 @@ defmodule Ecto.Migration do
396
@type t :: %__MODULE__{
397
table: String.t(),
398
prefix: String.t() | nil,
399
- name: atom,
+ name: String.t() | atom,
400
columns: [atom | String.t()],
401
unique: boolean,
402
concurrently: boolean,
@@ -779,7 +779,8 @@ defmodule Ecto.Migration do
779
780
## Options
781
782
- * `:name` - the name of the index. Defaults to "#{table}_#{column}_index".
+ * `:name` - the name of the index. Can be provided as a string or an atom.
783
+ Defaults to "#{table}_#{column}_index".
784
* `:prefix` - specify an optional prefix for the index.
785
* `:unique` - indicates whether the index should be unique. Defaults to `false`.
786
* `:comment` - adds a comment to the index.
0 commit comments