Migration generator - String to EnumString migration cycles
Reported by Ara Vartanian | October 26th, 2008 @ 04:05 PM | in Hobo 1.0 - Final
Here are the steps to reproduce:
Make an app with a simple model:
hobo test ruby script/generate hobo_model_resource thing status:string ruby script/generate hobo_migration rake db:migrate
Now in thing.rb, change:
status :string
to:
status enum_string(:new), :default => :new
And migrate the change:
ruby script/generate hobo_migration rake db:migrate
Now to show the problem, again try:
ruby script/generate hobo_migration
Hobo will generate a migration even though it should not that is identical on the up and on the down:
---------- Up Migration ----------
change_column :things, :status, :string, :default => :new, :limit => 255
---------- Down Migration --------
change_column :things, :status, :string, :default => "'--- :new\n'"
Comments and changes to this ticket
-
Tom Locke October 27th, 2008 @ 09:30 AM
- State changed from new to open
Thanks for reporting this.
-
Tom Locke January 6th, 2009 @ 04:58 PM
- Milestone set to Hobo 1.0 - Final
-
Tom Locke January 6th, 2009 @ 05:19 PM
- Tag changed from migrations to defect, migration-generator
- Title changed from String to EnumString migration cycles to Migration generator - String to EnumString migration cycles
-
Tom Locke July 7th, 2009 @ 03:45 PM
- State changed from open to invalid
OK I'm marking this as invalid then, since it's not really a bug. Thanks Zed.
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 ยป