{"action":"opened","issue":{"url":"https://api.github.com/repos/rails/rails/issues/20971","labels_url":"https://api.github.com/repos/rails/rails/issues/20971/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/20971/comments","events_url":"https://api.github.com/repos/rails/rails/issues/20971/events","html_url":"https://github.com/rails/rails/issues/20971","id":96378818,"number":20971,"title":"HStore is saved but rolls back after reload [Rails 4.2]","user":{"login":"Stormcore","id":2528948,"avatar_url":"https://avatars.githubusercontent.com/u/2528948?v=3","gravatar_id":"","url":"https://api.github.com/users/Stormcore","html_url":"https://github.com/Stormcore","followers_url":"https://api.github.com/users/Stormcore/followers","following_url":"https://api.github.com/users/Stormcore/following{/other_user}","gists_url":"https://api.github.com/users/Stormcore/gists{/gist_id}","starred_url":"https://api.github.com/users/Stormcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stormcore/subscriptions","organizations_url":"https://api.github.com/users/Stormcore/orgs","repos_url":"https://api.github.com/users/Stormcore/repos","events_url":"https://api.github.com/users/Stormcore/events{/privacy}","received_events_url":"https://api.github.com/users/Stormcore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-21T18:03:45Z","updated_at":"2015-07-21T18:03:45Z","closed_at":null,"body":"Im using postgres and using HSTORE\r\n\r\nIn User model\r\n    store_accessor :filter_options, :makes, :cities, :bodies, :detail_types, :engines, :transmissions\r\n\r\nthen I do\r\n    self.filter_options = new_options\r\n\r\n    self.save\r\n=> true\r\n>> self.filter_options\r\n=> {\"makes\"=>\"[2]\", \"cities\"=>\"[1, 2, 3, 4, 5, 6, 7, 8]\", \"bodies\"=>\"[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]\", \"engines\"=>\"[1, 2, 3, 4, 5, 6]\", \"detail_types\"=>\"[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]\", \"transmissions\"=>\"[1, 2, 3, 4, 5, 6]\"}\r\n\r\nAs we see it is stored correctly, but if I refresh the page or do **self.reload**, it is rolled back\r\n\r\n>> self.reload.filter_options\r\n=> {\"makes\"=>\"[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111]\", \"cities\"=>\"[1, 2, 3, 4, 5, 6, 7, 8]\", \"bodies\"=>\"[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]\", \"engines\"=>\"[1, 2, 3, 4, 5, 6]\", \"detail_types\"=>\"[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]\", \"transmissions\"=>\"[1, 2, 3, 4, 5, 6]\"}\r\n\r\nWould appreciate any help, thanks!"}}