{"action":"closed","issue":{"url":"https://api.github.com/repos/RubyMoney/money-rails/issues/310","labels_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/310/comments","events_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/310/events","html_url":"https://github.com/RubyMoney/money-rails/issues/310","id":66477690,"number":310,"title":"Why do migrations on Rails 4.2+ using PG need to use `add_monetize` instead of `add_money`?","user":{"login":"peteygao","id":2184561,"avatar_url":"https://avatars.githubusercontent.com/u/2184561?v=3","gravatar_id":"","url":"https://api.github.com/users/peteygao","html_url":"https://github.com/peteygao","followers_url":"https://api.github.com/users/peteygao/followers","following_url":"https://api.github.com/users/peteygao/following{/other_user}","gists_url":"https://api.github.com/users/peteygao/gists{/gist_id}","starred_url":"https://api.github.com/users/peteygao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peteygao/subscriptions","organizations_url":"https://api.github.com/users/peteygao/orgs","repos_url":"https://api.github.com/users/peteygao/repos","events_url":"https://api.github.com/users/peteygao/events{/privacy}","received_events_url":"https://api.github.com/users/peteygao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-05T20:08:14Z","updated_at":"2015-04-05T20:13:47Z","closed_at":"2015-04-05T20:13:47Z","body":"~~Based on this file:~~\r\n~~https://github.com/RubyMoney/money-rails/blob/9c0ee7773207346ebda7b22c88d306962c518d22/lib/money-rails/active_record/migration_extensions/schema_statements.rb#L6~~\r\n\r\n~~Doesn't `add_money` does defer to `add_monetize` anyways? So what's the deal with having to explicitly state `add_monetize` in migrations for Rails 4.2+ while using Postgres? And why _only_ for Rails 4.2+ and _only_ for PG? Where's the code path that makes this differentiation?~~\r\n\r\nEDIT: I figured it out, it's because Rails 4.2 itself has added the `add_money` method to migrations which operates on PG `money` data type, which has nothing to do with the money gem itself."}}