Forrest logo
back to context overview

sequelize

List of commands for sequelize:

  • sequelize:tldr:0a865 sequelize: Create a seed file with the specified name to populate the database.
    $ sequelize seed:generate --name ${seed_filename}
    try on your machine
    explain this command
  • sequelize:tldr:17282 sequelize: Revert all migrations.
    $ sequelize db:migrate:undo:all
    try on your machine
    explain this command
  • sequelize:tldr:1f488 sequelize: Populate database using all seed files.
    $ sequelize db:seed:all
    try on your machine
    explain this command
  • sequelize:tldr:3b93c sequelize: Run the migration file.
    $ sequelize db:migrate
    try on your machine
    explain this command
  • sequelize:tldr:e172f sequelize: Create a model with 3 fields and a migration file.
    $ sequelize model:generate --name ${table_name} --attributes ${field1:integer,field2:string,field3:boolean}
    try on your machine
    explain this command
back to context overview