{"action":"created","issue":{"url":"https://api.github.com/repos/remotelocal/web/issues/63","labels_url":"https://api.github.com/repos/remotelocal/web/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/remotelocal/web/issues/63/comments","events_url":"https://api.github.com/repos/remotelocal/web/issues/63/events","html_url":"https://github.com/remotelocal/web/issues/63","id":56200658,"number":63,"title":"Active Record 関連付け","user":{"login":"remotelocal","id":10397617,"avatar_url":"https://avatars.githubusercontent.com/u/10397617?v=3","gravatar_id":"","url":"https://api.github.com/users/remotelocal","html_url":"https://github.com/remotelocal","followers_url":"https://api.github.com/users/remotelocal/followers","following_url":"https://api.github.com/users/remotelocal/following{/other_user}","gists_url":"https://api.github.com/users/remotelocal/gists{/gist_id}","starred_url":"https://api.github.com/users/remotelocal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remotelocal/subscriptions","organizations_url":"https://api.github.com/users/remotelocal/orgs","repos_url":"https://api.github.com/users/remotelocal/repos","events_url":"https://api.github.com/users/remotelocal/events{/privacy}","received_events_url":"https://api.github.com/users/remotelocal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-02T06:27:32Z","updated_at":"2015-02-02T06:59:20Z","closed_at":null,"body":"外部キーは、belongs_toを追加した方のモデルのテーブルに追加されます"},"comment":{"url":"https://api.github.com/repos/remotelocal/web/issues/comments/72413862","html_url":"https://github.com/remotelocal/web/issues/63#issuecomment-72413862","issue_url":"https://api.github.com/repos/remotelocal/web/issues/63","id":72413862,"user":{"login":"remotelocal","id":10397617,"avatar_url":"https://avatars.githubusercontent.com/u/10397617?v=3","gravatar_id":"","url":"https://api.github.com/users/remotelocal","html_url":"https://github.com/remotelocal","followers_url":"https://api.github.com/users/remotelocal/followers","following_url":"https://api.github.com/users/remotelocal/following{/other_user}","gists_url":"https://api.github.com/users/remotelocal/gists{/gist_id}","starred_url":"https://api.github.com/users/remotelocal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remotelocal/subscriptions","organizations_url":"https://api.github.com/users/remotelocal/orgs","repos_url":"https://api.github.com/users/remotelocal/repos","events_url":"https://api.github.com/users/remotelocal/events{/privacy}","received_events_url":"https://api.github.com/users/remotelocal/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T06:59:20Z","updated_at":"2015-02-02T06:59:20Z","body":"module FindRecentExtension\r\n  def find_recent\r\n    where(\"created_at > ?\", 5.days.ago)\r\n  end\r\nend\r\n \r\nclass Customer < ActiveRecord::Base\r\n  has_many :orders, -> { extending FindRecentExtension }\r\nend\r\n \r\nclass Supplier < ActiveRecord::Base\r\n  has_many :deliveries, -> { extending FindRecentExtension }\r\nend"}}