Max length validation on image titles
Titles for images should have a validation to check that their length is less than 250 characters, to prevent MySql errors like the below, and to present a decent error message to the user. Additionally, we should display this limit on the field (like it is done on some other fields)
Mysql2::Error: Data too long for column 'title' at row 1
app/controllers/generic_projects_controller.rb:147:in `create'
if @specific_project.save
app/controllers/application_controller.rb:76:in `switch_locale'
I18n.with_locale(locale, &action)
...
(244 additional frame(s) were not displayed)
ActiveRecord::ValueTooLong: Mysql2::Error: Data too long for column 'title' at row 1