Re: empty emtry in database problem

supriya agarwal
Mon, 30 Jun 2008 12:15:17 -0000

sorry but that i alreayd tried.. not working .. still saving a field as
empty in database.!! :(

On Mon, Jun 30, 2008 at 5:28 PM, Sijo Kg
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:

>
> Hi
>  In migration file you can speciy like
> :null => true
>
> If false, the underlying column has a not null constraint added (if the
> database supports it).
>
> You can use like
> t.column :name_last, :string, :null=>true     (for example)
>
>
> And already migration file exists you can change column type using
> change_column
>
> Sijo
> --
> Posted via http://www.ruby-forum.com/.