2010-08-29 119 views

回答

6

我認爲這會做的伎倆

change_column :users, :active, :boolean, :default => 1 

使用相同的數據類型,當你創建的列,但添加的默認參數。