goravel-crud-migration

Generate and integrate database migrations with audit fields for Goravel entities.

16|11|Updated Jun 12, 2025
One-click install
npx skills add https://github.com/liwoo/goravel-inertia-tw-starter --skill goravel-crud-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: goravel-crud-migration
Source: https://github.com/liwoo/goravel-inertia-tw-starter/tree/main/.claude/skills/goravel-crud-migration
Command: npx skills add https://github.com/liwoo/goravel-inertia-tw-starter --skill goravel-crud-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate and integrate database migrations and audit fields for new Goravel entities to accelerate CRUD scaffolding.

Core Features & Use Cases

  • Automated migration creation: quickly generate create table migrations for new entities with audit fields and soft deletes.
  • Guided integration: provides steps to register migrations in database/kernel.go and update models.
  • Use Case: When starting a new Goravel entity, run scaffolding to produce migrations and audit fields and then migrate the dev database.

Quick Start

Run the scaffold to create the migration and audit fields, then migrate the dev database.

Frequently Asked Questions about goravel-crud-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate database migration creation for a new Goravel entity?

To automate database migration creation for a new Goravel entity, run the scaffolding command to generate create table migrations with audit fields and soft deletes. The process guides you through editing generated migration files and registering them in database/kernel.go for proper deployment.

How do I add audit fields and soft deletes when scaffolding CRUD migrations in Goravel?

To add audit fields and soft deletes during Goravel CRUD scaffolding, the Skill automatically injects these columns into your generated migration files. You simply run the scaffold to produce the migrations, ensuring your new entity table includes standard audit tracking and deletion capabilities.

Do I need to register Goravel migrations in database/kernel.go before running artisan migrate?

Yes, you must register migrations in database/kernel.go before running artisan migrate. This guided integration step ensures the Goravel framework recognizes your new create table migrations during the deployment lifecycle, enabling proper schema updates across your development database.

What is the best way to set up CRUD scaffolding for a new entity in a Goravel project?

The best way to set up CRUD scaffolding in a Goravel project is to run an automated generator that creates the migration and audit fields. This accelerates development by producing the schema definitions and guiding you through kernel integration before you migrate the dev database.

Can I use artisan commands to generate migrations with audit fields in Goravel?

Yes, you can use artisan commands to generate migrations with audit fields in Goravel. The Skill automates the artisan migrate process, creating the initial migration file and then augmenting it with standard audit fields and soft deletes for the new entity.

Why are my Goravel entity migrations not deploying properly in my dev database?

Goravel entity migrations fail to deploy properly when they are not registered in database/kernel.go. The Skill addresses this by providing guided integration steps to ensure your generated migration files are correctly registered before you run artisan migrate on your dev database.