No extra migrations iff I use ":default => 'one'"

So, yes, a string makes the problem go away. :)

OK, I can finish my models properly now!

Unexpected that I'd have to use a string there, though. Aren't symbols
supposed to be the right thing to use for this?

Thanks for the help.

Cheers, JeremyC.

On Jan 1, 6:05 pm, Matt Jones <[email protected]> wrote:
> On Dec 31, 2011, at 9:36 PM, JezC wrote:
>
> > Hi - another repetitive migration issue - Hobo 1.3, Ruby 1.9.2p290,
> > Rails 3.0.11
>
> > hobo generate resource foo status:string
> > hobo generate resource bar status:string
>
> > Field definitions for both include:
>
> >  status enum_string(:one, :two, :three), :default => :one
>
> Does this still exhibit the same behavior if you write it as:
>
> status enum_string(:one, :two, :three), :default => 'one'
>
> (change the default to a string and not a symbol).
>
> --Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to