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
-
Bryan Larsen November 26th, 2009 @ 05:58 PM
- State changed from new to resolved
(from [7c4d64c4f2b74e9c91f3fbb47da1d359b41c3d74]) [#552 state:resolved]
Re-ask question when invalid response received in hobo_migration generator.
http://github.com/tablatom/hobo/commit/7c4d64c4f2b74e9c91f3fbb47da1...
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.
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
Tags
Referenced by
- 552 Migration rename accepts invalid choices (from [7c4d64c4f2b74e9c91f3fbb47da1d359b41c3d74]) [#552 s...