Verified this, and pushed a fix to github. The migration generator was  
not correctly
adding :null => true to cases where a field was losing the :null =>  
false option.

--Matt

On Aug 30, 2008, at 2:24 PM, GamaFranco wrote:

>
> I have the pre2. The database is sqlite.
>
> TF
>
> On Aug 30, 7:21 pm, Tom Locke <[EMAIL PROTECTED]> wrote:
>> Are you on the latest code? And what database?
>>
>> Tom
>>
>> On 30 Aug 2008, at 16:59, GamaFranco <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> Hello,
>>
>>> I have a table with an enum field in the hobofields declaration.
>>
>>> When I run 'script/generate hobo_migration', hobofields alters the
>>> enum column. This happens in every migration.
>>
>>> For example:
>>
>>> Up method contains:
>>>    change_column :championships, :state, :string, :limit => 255
>>
>>> Down method contains:
>>>    change_column :championships, :state, :string, :null => false
>>
>>> This happens in every migration that I've made after creating the
>>> enum.
>>
>>> Regards,
>>>  Tiago Franco
> >


--~--~---------~--~----~------------~-------~--~----~
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