Changed published to rails 4.1 enum