test/migration_generator.rdoctest in hobo_fields-2.0.0.pre7 vs test/migration_generator.rdoctest in hobo_fields-2.0.0.pre8
- old
+ new
@@ -15,10 +15,10 @@
* Using the Rails schema-dumper to extract information about the current state of the database.
* Calculating the changes that are required to bring the database into sync with your application.
Normally you would run the migration generator as a regular Rails generator. You would type
- $ script/generator hobo_migration
+ $ rails generate hobo:migration
in your Rails app, and the migration file would be created in `db/migrate`.
In order to demonstrate the generator in this doctest script however, we'll be using the Ruby API instead. The method `Generators::Hobo::Migration::Migrator.run` returns a pair of strings -- the up migration and the down migration.