Skip to content

Release v0.0.499

Choose a tag to compare

@github-actions github-actions released this 25 Jan 15:43
Fix migration DSL documentation to match CQL patterns

Update all documentation examples to use correct CQL migration syntax:
- Change `schema.create :table` to `schema.table :table` + `schema.table.create!`
- Change `schema.drop :table` to `schema.table.drop!`
- Change `text :column` to `column :column, String`
- Change `bigint :column` to `column :column, Int64`
- Change `boolean :column` to `column :column, Bool`
- Change `on_delete: "CASCADE"` to `on_delete: :cascade`
- Move `index` and `foreign_key` inside table blocks
- Remove separate `schema.alter` for indexes when defining new tables

Files updated:
- reference/api/migration-dsl.md (complete rewrite)
- reference/quick-reference.md
- how-to/migrations/*.md
- how-to/models/*.md
- how-to/relationships/*.md
- how-to/troubleshooting/migration-errors.md
- tutorials/getting-started/*.md
- tutorials/building-a-blog/02-database-schema.md
- tutorials/real-world-examples/migration-workflows.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>