YaleSTC / reservations

Manage equipment loans & reservations. Who can borrow what, for how long?
yalestc.github.io/reservations
MIT License
139 stars 58 forks source link

Gracefully handle data over schema limits #1549

Open orenyk opened 8 years ago

orenyk commented 8 years ago

Inspired by @zeffman's comment, we need to gracefully handle cases where users attempt to save data to the database that exceeds the schema limits (introduced in #1517), as opposed to throwing a 500 error.

esoterik commented 8 years ago

Rails 5 raises an ActiveRecord::ValueTooLong exception when column limits are exceeded, which will definitely help here!