Migrations
Usage
Artisan is already able to generate migrations, however Bob includes a handy ‘wrapper’ method to bob to enable quick creation.
To make a new migration simply use the command :
bob migration <migration_name>
Note : You can use the shortcut bob mig instead of bob migration to save characters.
Arguments
For more information and switches, see the Laravel documentation.
Example
bob mig create_users
produces :
<?php
class Create_Users {
/**
* Make changes to the database.
*
* @return void
*/
public function up()
{
//
}
/**
* Revert the changes to the database.
*
* @return void
*/
public function down()
{
//
}
}