Ensure to use from: and to: so that the migration is reversible.
def change
change_column_default :bicycles, :brakes, from: nil, to: "none"
endAug 15, 2025
Ensure to use from: and to: so that the migration is reversible.
def change
change_column_default :bicycles, :brakes, from: nil, to: "none"
end