
property :default
Reported by teamon | August 2nd, 2008 @ 07:40 PM
When defining property like:
property :status, Enum[:not_added, :waiting, :accepted, :rejected], :default => :not_added
it will raise database error because of create table query
"..."status" INT4 DEFAULT 'not_added',..."
now it is resolved by :default => 1, but it causes some problem with validation and i think :default => :not_added is more natural
The solution is to dump value when creating table. Patch included.
Comments and changes to this ticket
-
Adam French August 3rd, 2008 @ 12:21 PM
- State changed from new to resolved
patch applied in 265f894142014a4bf704ee6b11da2dc069f69302
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
- Nobody is watching this ticket.