SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Tuesday, December 23, 2008

change_column in ActiveRecord::Migration

In rails 2.1 and above change_column should be able to use :null => true on a field that formerly had false in its lower versions



def self.up
change_column :payment_ledgers,:reg_id,:integer,:null=>true
end