#386 ✓resolved
Bryan Larsen

migration generator thinks decimal field is always modified

Reported by Bryan Larsen | February 27th, 2009 @ 03:08 PM | in Hobo 1.0 - Final

I have a field column:

fee Dollars, :precision => 11, :scale => 4

Dollars is defined as:

class Dollars < DelegateClass(BigDecimal)
  COLUMN_TYPE = :decimal
end

Whenever I do script/generate hobo_migration, it adds a migration for this column:

---------- Up Migration ----------
change_column :services, :fee, :decimal, :scale => 4, :precision => 11
----------------------------------

---------- Down Migration --------
change_column :services, :fee, :decimal
----------------------------------

I don't think that this is related to it being a Rich Type -- I think this was happening before I changed to using a rich type and fee was defined as a plain :decimal.

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