#508 ✓resolved

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

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