How do I add a default value to an existing field in a RoR migration?
+3
A:
I think this would do the trick
change_column :users, :active, :boolean, :default => 1
Use the same data type as when you created the column but add the default parameter.
StefanO
2010-08-29 10:16:16