{"action":"created","issue":{"url":"https://api.github.com/repos/RubyMoney/money-rails/issues/264","labels_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/264/comments","events_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/264/events","html_url":"https://github.com/RubyMoney/money-rails/issues/264","id":53140924,"number":264,"title":"Rails 4.2 Migration helper raises wrong number of argument error","user":{"login":"Adam89","id":2530296,"avatar_url":"https://avatars.githubusercontent.com/u/2530296?v=3","gravatar_id":"","url":"https://api.github.com/users/Adam89","html_url":"https://github.com/Adam89","followers_url":"https://api.github.com/users/Adam89/followers","following_url":"https://api.github.com/users/Adam89/following{/other_user}","gists_url":"https://api.github.com/users/Adam89/gists{/gist_id}","starred_url":"https://api.github.com/users/Adam89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adam89/subscriptions","organizations_url":"https://api.github.com/users/Adam89/orgs","repos_url":"https://api.github.com/users/Adam89/repos","events_url":"https://api.github.com/users/Adam89/events{/privacy}","received_events_url":"https://api.github.com/users/Adam89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-30T19:39:35Z","updated_at":"2015-01-05T13:24:51Z","closed_at":null,"body":"I tried updating to rails 4.2 but encountered this error, it's caused by the below addition:\r\n\r\nhttps://github.com/rails/docrails/blob/f6767b962e7dbcd2859a814ca1d369f0d5c064d2/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb#L87\r\n\r\n```\r\ncreate_table :price_infos do |t|\r\n   t.money :start_price\r\n   t.money :final_price\r\n   t.money :tax\r\n end\r\n```\r\nRaises a wrong number of argument error. \r\n\r\n```\r\n== 20131119135443 CreatePriceInfos: migrating ==========================\r\n-- create_table(:price_infos)\r\nrake aborted!\r\nStandardError: An error has occurred, this and all later migrations canceled:\r\n\r\nwrong number of arguments (1 for 2)/Users/Adam/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/schema_definitions.rb:87:in `money'\r\n````"},"comment":{"url":"https://api.github.com/repos/RubyMoney/money-rails/issues/comments/68706867","html_url":"https://github.com/RubyMoney/money-rails/issues/264#issuecomment-68706867","issue_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/264","id":68706867,"user":{"login":"semmons99","id":27679,"avatar_url":"https://avatars.githubusercontent.com/u/27679?v=3","gravatar_id":"","url":"https://api.github.com/users/semmons99","html_url":"https://github.com/semmons99","followers_url":"https://api.github.com/users/semmons99/followers","following_url":"https://api.github.com/users/semmons99/following{/other_user}","gists_url":"https://api.github.com/users/semmons99/gists{/gist_id}","starred_url":"https://api.github.com/users/semmons99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semmons99/subscriptions","organizations_url":"https://api.github.com/users/semmons99/orgs","repos_url":"https://api.github.com/users/semmons99/repos","events_url":"https://api.github.com/users/semmons99/events{/privacy}","received_events_url":"https://api.github.com/users/semmons99/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T13:24:51Z","updated_at":"2015-01-05T13:24:51Z","body":"Excellent. Thanks for figuring it out."}}