docs: update formatter and cheat sheet

This commit is contained in:
Zach Daniel 2024-01-29 10:52:34 -05:00
parent 7b9929f07c
commit 4d86fa73ad
2 changed files with 2 additions and 0 deletions

View file

@ -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,

View file

@ -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. |