hobo_migration keeps on generating datetime migrations
Reported by ladybug | October 8th, 2009 @ 09:30 AM | in Hobo 1.0 - Final
I have a model with a :datetime field defined in trhe hobo model fields block:
solution_date :datetime, :null => false, :default => '1970-01-01 07:01:01'
Now I created the initial hobo_migration and it went just fine. The schema.rb says from that particular table column:
t.datetime "solution_date", :default => '1970-01-01 07:01:01', :null => false
However on subsequent hobo_migration runs the migration thinks
this has been changed even if it has not.
It generates an up migration with the line:
change_column :vulnerabilities, :solution_date, :datetime, :null => false, :default => "1970-01-01 07:01:01"
and a down migration with the line:
change_column :vulnerabilities, :solution_date, :datetime, :default => '1970-01-01 07:01:01', :null => false
As far as I have had time to debug this issue, it has something to do with the number and order of arguments.
Comments and changes to this ticket
-
Tom Locke October 24th, 2009 @ 05:56 PM
- Milestone set to Hobo 1.0 - Final
-
Tom Locke October 24th, 2009 @ 06:09 PM
- State changed from new to investigating
-
Tom Locke October 29th, 2009 @ 07:23 PM
- State changed from investigating to resolved
(from [5223c68ea735dc57c7ed0e07102299c55fa6d51d]) Clear up a couple of cases where Hobo tries to create migrations that aren't necessary [#386 state:resolved] [#501 state:resolved]
http://github.com/tablatom/hobo/commit/5223c68ea735dc57c7ed0e071022... -
Tom Locke October 29th, 2009 @ 10:45 PM
(from [84eb1e77b62c60e3369e900e9fd391cd206acfde]) Clear up a couple of cases where Hobo tries to create migrations that aren't necessary [#386 state:resolved] [#501 state:resolved]
http://github.com/tablatom/hobo/commit/84eb1e77b62c60e3369e900e9fd3...
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
Referenced by
- 386 migration generator thinks decimal field is always modified (from [5223c68ea735dc57c7ed0e07102299c55fa6d51d]) Clear u...
- 501 hobo_migration keeps on generating datetime migrations (from [5223c68ea735dc57c7ed0e07102299c55fa6d51d]) Clear u...
- 386 migration generator thinks decimal field is always modified (from [84eb1e77b62c60e3369e900e9fd391cd206acfde]) Clear u...
- 501 hobo_migration keeps on generating datetime migrations (from [84eb1e77b62c60e3369e900e9fd391cd206acfde]) Clear u...