lib/pliny/commands/generator.rb in pliny-0.8.2 vs lib/pliny/commands/generator.rb in pliny-0.9.0

- old
+ new

@@ -21,11 +21,11 @@ md = Mediator.new(name, options) md.create md.create_test end - desc 'migration NAME', 'Generates a migration' - def migration(name) + desc 'migration [NAME]', 'Generates a migration' + def migration(*name) require_relative 'generator/migration' mg = Migration.new(name, options) mg.create end