#552 ✓resolved
Betelgeuse

Migration rename accepts invalid choices

Reported by Betelgeuse | November 23rd, 2009 @ 12:22 PM

 $ ./script/generate hobo_migration
DROP or RENAME?: column model.old1
Rename choices: new
Enter either 'drop old1' or one of the rename choices: drop old1

DROP or RENAME?: column model.old2
Rename choices: new
Enter either 'drop old2' or one of the rename choices: rename new

---------- Up Migration ----------
add_column :models, :new, :binary, :null => false
remove_column :models, :old1
----------------------------------

---------- Down Migration --------
remove_column :models, :new
add_column :models, :old1, :text
----------------------------------
What now: [g]enerate migration, generate and [m]igrate now or [c]ancel? g

Here answering 'rename new' is not valid and hobo should ask again. This is on hobo 0.9.0.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

People watching this ticket

Referenced by

Pages