Change default value in migration
Ensure to use from: and to: so that the migration is reversible.
def change
change_column_default :bicycles, :brakes, from: nil, to: "none"
end
Ensure to use from: and to: so that the migration is reversible.
def change
change_column_default :bicycles, :brakes, from: nil, to: "none"
end