diff --git a/.formatter.exs b/.formatter.exs index 934d415..682cd1a 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -9,6 +9,7 @@ spark_locals_without_parens = [ create?: 1, deferrable: 1, down: 1, + error_fields: 1, exclusion_constraint_names: 1, foreign_key_names: 1, identity_index_names: 1, diff --git a/documentation/dsls/DSL:-AshPostgres.DataLayer.md b/documentation/dsls/DSL:-AshPostgres.DataLayer.md index 6cab440..46b9a91 100644 --- a/documentation/dsls/DSL:-AshPostgres.DataLayer.md +++ b/documentation/dsls/DSL:-AshPostgres.DataLayer.md @@ -104,6 +104,7 @@ index ["column", "column2"], unique: true, where: "thing = TRUE" | Name | Type | Default | Docs | |------|------|---------|------| +| [`error_fields`](#postgres-custom_indexes-index-error_fields){: #postgres-custom_indexes-index-error_fields } | `list(atom)` | | The fields to attach the error to. | | [`name`](#postgres-custom_indexes-index-name){: #postgres-custom_indexes-index-name } | `String.t` | | the name of the index. Defaults to "#{table}_#{column}_index". | | [`unique`](#postgres-custom_indexes-index-unique){: #postgres-custom_indexes-index-unique } | `boolean` | `false` | indicates whether the index should be unique. | | [`concurrently`](#postgres-custom_indexes-index-concurrently){: #postgres-custom_indexes-index-concurrently } | `boolean` | `false` | indicates whether the index should be created/dropped concurrently. |