method

create_migration_file

rails latest stable - Class: ActiveRecord::Generators::ModelGenerator
create_migration_file()
public

creates the migration file for the model.