Anatol Pomozov
2005-Oct-16 10:00 UTC
Does change_column supports changing NULL constrains?
I am trying to write migration that removes NOT NULL constraint from column. Something like this TABLES = [:tab1, :tab2, :tab3] def self.up TABLES.each{|t| change_column(t, :type, :integer, :null => true) } end But nothing happens after ''rake migrate'' . NOT NULL constrains still present in db. Does changing null constrains supported by migrations? I am using ror from beta gems. rev 2471 -- anatol _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails