#501 ✓resolved
ladybug

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

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