Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ The created file will have the following content:

```js
// here, 'subtitle' is the name of the field defined when you execute the generate command
module.exports = function (block) {
module.exports = function (block, slug) {
// Example to change a string to boolean
// block.subtitle = !!(block.subtitle)

Expand Down
2 changes: 1 addition & 1 deletion src/tasks/templates/migration-file.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default `export default function (block) {
export default `export default function (block, slug) {
// Example to change a string to boolean
// block.{{ fieldname }} = !!(block.{{ fieldname }})

Expand Down