Migrations
Step 1: Clone From Your GitHub Repository
Step 2: Install db-migrate
db-migrateStep 3: Connect to the Database With database.json
database.json "dev": {
"driver": "mysql",
"user": "root",
"database": "database_name",
"password": "my_password"
},
"prod": "Insert Your Database URL here",
"sql-file": true
}
Step 4: Create and Populate SQL Files

Down-Migration Query
Up-Migration Query
Step 5: Update Scripts
Step 6: Edit the Run Command

Step 7: Push the Changes
Last updated
Was this helpful?