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
-
Tom Locke March 12th, 2009 @ 10:39 AM
- Milestone set to Hobo 1.0 - Final
- State changed from new to open
-
Tom Locke October 29th, 2009 @ 07:23 PM
- State changed from open 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...