docs/synopsis.md in table_sync-1.5.0 vs docs/synopsis.md in table_sync-1.6.0

- old
+ new

@@ -201,9 +201,18 @@ This method implements logic of mapping `source` to `to_table` and allows customizing the event handling logic with provided block. You can use one `source` for a lot of `to_table`. The following options are available inside the block: +- `on_destroy` - defines a custom logic and behavior for `destroy` event: + - definition: + ```ruby + on_destroy do |attributes:, target_keys:| + # your code here + end + ``` + - `target_keys:` - primary keys or unique keys; + - `attributes:` - received model attributes; - `only` - whitelist for receiving attributes - `skip` - return truthy value to skip the row - `target_keys` - primary keys or unique keys - `rest_key` - name of jsonb column for attributes which are not included in the whitelist. You can set the `rest_key(false)` or `rest_key(nil)` if you won't need the rest data. - `version_key` - name of version column