Re: empty emtry in database problem

Sijo Kg
Mon, 30 Jun 2008 11:58:49 -0000

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/.