Ensure to use from: and to: so that the migration is reversible.
def change
change_column_default :bicycles, :brakes, from: nil, to: "none"
endMar 13, 2026
Ensure to use from: and to: so that the migration is reversible.
def change
change_column_default :bicycles, :brakes, from: nil, to: "none"
end