Truncate text for page_histories > details - Error 500 for long titles
The field page_histories > details has a maximum of 255 characters which is not enough for long titles:
Completed 500 Internal Server Error in 194ms (Views: 14.8ms | ActiveRecord: 120.2ms)
ActiveRecord::StatementInvalid (Mysql2::Error: Data too long for column 'details' at row 1: INSERT INTO `page_histories` (`type`, `user_id`, `page_id`, `details`, `created_at`) VALUES ('ChangeTitle',....
Instead of increasing the field size we want to truncate the text because the space available for display is not too big.