rails 4 pg update