#41 ✓resolved
Dr Nic

:decimal fields always needing migrations

Reported by Dr Nic | June 9th, 2008 @ 04:21 AM

---------- Up Migration ----------
change_column :codings, :project_coding, :decimal, :scale => 0, :limit => 10, :precision => 10

---------- Down Migration --------
change_column :codings, :project_coding, :integer, :limit => 10, :precision => 10, :scale => 0

I guess because of the random ordering of the keys for a decimal column the hobo_migration thinks that something has changed when it really hasn't.

Similarly, it seems unnecessary to create a migration for a column where the hobofields specify no overrides for default column values (e.g. :limit => 10) but because this then differs from the ultimate schema value (:limit =>10) it creates a migration each time.

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

Pages