: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
-
Tom Locke July 29th, 2008 @ 10:09 AM
- State changed from new to resolved
Fixed in cb0be208fbe0cc1c2192529e5b30ae6dd5ae289c
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 ยป