lundi 30 mai 2016

How to run migration generation from console?

I want to try to generate migration inside rails console.

This file is responsible for migration creation (particularly create_migrate_file method):

rails/generators/active_record/migration/migration_generator.rb

enter image description here

But, for some reason, in my console I can't call ActiveRecord::Generators::MigrationGenerator class.

enter image description here

NameError: uninitialized constant ActiveRecord::Generators::MigrationGenerator

What can I do in this case?

Aucun commentaire:

Enregistrer un commentaire