#122 √ invalid
Ahsan Ali

'merb-gen destroy migration name' tries to delete a non-existent migration

Reported by Ahsan Ali | May 30th, 2008 @ 11:15 AM | in 1.0

'merb-gen destroy migration xyz' tries to delete 002_xyz_migration.rb, when it should be deleting 001_xyz_migration.rb.

Create a new migration

  1. merb-gen migration xyz

create schema/migrations

exists schema

exists schema/migrations

create schema/migrations/001_xyz_migration.rb

Destroy the migration

  1. merb-gen destroy migration xyz

missing schema/migrations/002_xyz_migration.rb

notempty schema/migrations

notempty schema

notempty schema

notempty schema/migrations

notempty schema

Basically, the destroy action takes the next available number, instead of grabbing the index of the specified migration.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins