Console - Generate
Generate a new migration
cake migration generate Force migration generation
This is used in the case that you want to generate data for tables without an existing CakePHP model available
cake migration generate -f The -f switch means "force"
Specifying connections
If you wish to use a data source other than that defined on the default connection, specify it with the -connection <name> option:
cake migration generate -connection test This will inspect the connection named test in your app/config/database.php configuration file, and generate migrations based on the information obtained from the datasource.