Guys, I have create this database column a while ago- t.date :interview_date, :null => false means that this column can not have null value and then i deployed it on my server. Now i want this column to be changed as t.date :interview_date, :null => true so that my column can accept null values also. Want to know each & every possible way.. ? Thanks in advance.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 21 September 2010 12:31, Hemant Bhargava <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Guys, > > I have create this database column a while ago- > t.date :interview_date, :null => false means that this column can not > have null value and then i deployed it on my server. Now i want this > column to be changed as > t.date :interview_date, :null => true so that my column can accept null > values also. > > Want to know each & every possible way.. ?I don''t know why you want to know all possible ways but the conventional way would be to use a migration and in there use change_column. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hey colin, Thanks for your reply. It worked. Colin Law wrote:> On 21 September 2010 12:31, Hemant Bhargava <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: >> Guys, >> >> I have create this database column a while ago- >> t.date :interview_date, :null => false means that this column can not >> have null value and then i deployed it on my server. Now i want this >> column to be changed as >> t.date :interview_date, :null => true so that my column can accept null >> values also. >> >> Want to know each & every possible way.. ? > > I don''t know why you want to know all possible ways but the > conventional way would be to use a migration and in there use > change_column. > > Colin-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.