File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ defmodule Ecto.Migration do
396
396
@ type t :: % __MODULE__ {
397
397
table: String . t ( ) ,
398
398
prefix: String . t ( ) | nil ,
399
- name: atom ,
399
+ name: String . t ( ) | atom ,
400
400
columns: [ atom | String . t ( ) ] ,
401
401
unique: boolean ,
402
402
concurrently: boolean ,
@@ -779,7 +779,8 @@ defmodule Ecto.Migration do
779
779
780
780
## Options
781
781
782
- * `:name` - the name of the index. Defaults to "#{table}_#{column}_index".
782
+ * `:name` - the name of the index. Can be provided as a string or an atom.
783
+ Defaults to "#{table}_#{column}_index".
783
784
* `:prefix` - specify an optional prefix for the index.
784
785
* `:unique` - indicates whether the index should be unique. Defaults to `false`.
785
786
* `:comment` - adds a comment to the index.
You can’t perform that action at this time.
0 commit comments