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
But, for some reason, in my console I can't call ActiveRecord::Generators::MigrationGenerator class.
NameError: uninitialized constant ActiveRecord::Generators::MigrationGenerator
What can I do in this case?
Aucun commentaire:
Enregistrer un commentaire