{"action":"created","comment":{"url":"https://api.github.com/repos/neo4jrb/neo4j/pulls/comments/57080891","id":57080891,"diff_hunk":"@@ -13,7 +13,7 @@ class ThirdRelClass; end\n       class User\n         include Neo4j::ActiveNode\n         property :name\n-        has_many :out, :songs, model_class: :Song, type: 'songs'\n+        has_many :out, :songs, model_class: :'MigrationSpecs::Song', type: 'songs'","path":"spec/e2e/migration_spec.rb","position":5,"original_position":5,"commit_id":"c11ce2c520482c0b3a033336cba7a23d766dd87e","original_commit_id":"c11ce2c520482c0b3a033336cba7a23d766dd87e","user":{"login":"JustinAiken","id":1568662,"avatar_url":"https://avatars.githubusercontent.com/u/1568662?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinAiken","html_url":"https://github.com/JustinAiken","followers_url":"https://api.github.com/users/JustinAiken/followers","following_url":"https://api.github.com/users/JustinAiken/following{/other_user}","gists_url":"https://api.github.com/users/JustinAiken/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinAiken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinAiken/subscriptions","organizations_url":"https://api.github.com/users/JustinAiken/orgs","repos_url":"https://api.github.com/users/JustinAiken/repos","events_url":"https://api.github.com/users/JustinAiken/events{/privacy}","received_events_url":"https://api.github.com/users/JustinAiken/received_events","type":"User","site_admin":false},"body":"Before this change, doing `User.first.songs` gave me `ArgumentError: Could not find class: ::Song`","created_at":"2016-03-22T22:29:04Z","updated_at":"2016-03-22T22:29:04Z","html_url":"https://github.com/neo4jrb/neo4j/pull/1166#discussion_r57080891","pull_request_url":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1166","_links":{"self":{"href":"https://api.github.com/repos/neo4jrb/neo4j/pulls/comments/57080891"},"html":{"href":"https://github.com/neo4jrb/neo4j/pull/1166#discussion_r57080891"},"pull_request":{"href":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1166"}}},"pull_request":{"url":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1166","id":63803628,"html_url":"https://github.com/neo4jrb/neo4j/pull/1166","diff_url":"https://github.com/neo4jrb/neo4j/pull/1166.diff","patch_url":"https://github.com/neo4jrb/neo4j/pull/1166.patch","issue_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1166","number":1166,"state":"open","locked":false,"title":"Add migration for mass relabeling relationship nodes","user":{"login":"JustinAiken","id":1568662,"avatar_url":"https://avatars.githubusercontent.com/u/1568662?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinAiken","html_url":"https://github.com/JustinAiken","followers_url":"https://api.github.com/users/JustinAiken/followers","following_url":"https://api.github.com/users/JustinAiken/following{/other_user}","gists_url":"https://api.github.com/users/JustinAiken/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinAiken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinAiken/subscriptions","organizations_url":"https://api.github.com/users/JustinAiken/orgs","repos_url":"https://api.github.com/users/JustinAiken/repos","events_url":"https://api.github.com/users/JustinAiken/events{/privacy}","received_events_url":"https://api.github.com/users/JustinAiken/received_events","type":"User","site_admin":false},"body":"> So we're in the midst of updating the neo4j gem from 3.x to 6.x... One of the pain points was the way the relationship labels changed - `#old_way` to `NEW_WAY` (which is a change that makes sense and I'm glad you did!) Anyways, I'd written a helper that went through all the existing relationships and renamed them... [was wondering the best way to contribute it upstream]\r\n\r\n- - me\r\n\r\n> Hey @JustinAiken! That sounds like it might be a good fit for https://github.com/neo4jrb/neo4j/blob/master/lib/neo4j/migration.rb ?\r\nYou just need a class inheriting from `Neo4j`::Migration and the three methods in the public interface\r\n\r\n- - @subvertallchris\r\n\r\nHere's my first rough whack at fitting into a subclass of that... if this doesn't fit the project well I'll close and maybe create an outside gem, but if you like where it's heading I can clean it up, add more test cases, and do docs/changelog/etc","created_at":"2016-03-22T22:28:01Z","updated_at":"2016-03-22T22:29:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a79314ff63a394fbcc11608c357047623e736c5e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1166/commits","review_comments_url":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1166/comments","review_comment_url":"https://api.github.com/repos/neo4jrb/neo4j/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1166/comments","statuses_url":"https://api.github.com/repos/neo4jrb/neo4j/statuses/c11ce2c520482c0b3a033336cba7a23d766dd87e","head":{"label":"usertesting:feature/relabel_migration","ref":"feature/relabel_migration","sha":"c11ce2c520482c0b3a033336cba7a23d766dd87e","user":{"login":"usertesting","id":1093487,"avatar_url":"https://avatars.githubusercontent.com/u/1093487?v=3","gravatar_id":"","url":"https://api.github.com/users/usertesting","html_url":"https://github.com/usertesting","followers_url":"https://api.github.com/users/usertesting/followers","following_url":"https://api.github.com/users/usertesting/following{/other_user}","gists_url":"https://api.github.com/users/usertesting/gists{/gist_id}","starred_url":"https://api.github.com/users/usertesting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usertesting/subscriptions","organizations_url":"https://api.github.com/users/usertesting/orgs","repos_url":"https://api.github.com/users/usertesting/repos","events_url":"https://api.github.com/users/usertesting/events{/privacy}","received_events_url":"https://api.github.com/users/usertesting/received_events","type":"Organization","site_admin":false},"repo":{"id":23837348,"name":"neo4j","full_name":"usertesting/neo4j","owner":{"login":"usertesting","id":1093487,"avatar_url":"https://avatars.githubusercontent.com/u/1093487?v=3","gravatar_id":"","url":"https://api.github.com/users/usertesting","html_url":"https://github.com/usertesting","followers_url":"https://api.github.com/users/usertesting/followers","following_url":"https://api.github.com/users/usertesting/following{/other_user}","gists_url":"https://api.github.com/users/usertesting/gists{/gist_id}","starred_url":"https://api.github.com/users/usertesting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usertesting/subscriptions","organizations_url":"https://api.github.com/users/usertesting/orgs","repos_url":"https://api.github.com/users/usertesting/repos","events_url":"https://api.github.com/users/usertesting/events{/privacy}","received_events_url":"https://api.github.com/users/usertesting/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/usertesting/neo4j","description":"An active model wrapper for the Neo4j Graph Database for Ruby.","fork":true,"url":"https://api.github.com/repos/usertesting/neo4j","forks_url":"https://api.github.com/repos/usertesting/neo4j/forks","keys_url":"https://api.github.com/repos/usertesting/neo4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usertesting/neo4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usertesting/neo4j/teams","hooks_url":"https://api.github.com/repos/usertesting/neo4j/hooks","issue_events_url":"https://api.github.com/repos/usertesting/neo4j/issues/events{/number}","events_url":"https://api.github.com/repos/usertesting/neo4j/events","assignees_url":"https://api.github.com/repos/usertesting/neo4j/assignees{/user}","branches_url":"https://api.github.com/repos/usertesting/neo4j/branches{/branch}","tags_url":"https://api.github.com/repos/usertesting/neo4j/tags","blobs_url":"https://api.github.com/repos/usertesting/neo4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usertesting/neo4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usertesting/neo4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/usertesting/neo4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usertesting/neo4j/statuses/{sha}","languages_url":"https://api.github.com/repos/usertesting/neo4j/languages","stargazers_url":"https://api.github.com/repos/usertesting/neo4j/stargazers","contributors_url":"https://api.github.com/repos/usertesting/neo4j/contributors","subscribers_url":"https://api.github.com/repos/usertesting/neo4j/subscribers","subscription_url":"https://api.github.com/repos/usertesting/neo4j/subscription","commits_url":"https://api.github.com/repos/usertesting/neo4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/usertesting/neo4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/usertesting/neo4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/usertesting/neo4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/usertesting/neo4j/contents/{+path}","compare_url":"https://api.github.com/repos/usertesting/neo4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usertesting/neo4j/merges","archive_url":"https://api.github.com/repos/usertesting/neo4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usertesting/neo4j/downloads","issues_url":"https://api.github.com/repos/usertesting/neo4j/issues{/number}","pulls_url":"https://api.github.com/repos/usertesting/neo4j/pulls{/number}","milestones_url":"https://api.github.com/repos/usertesting/neo4j/milestones{/number}","notifications_url":"https://api.github.com/repos/usertesting/neo4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usertesting/neo4j/labels{/name}","releases_url":"https://api.github.com/repos/usertesting/neo4j/releases{/id}","deployments_url":"https://api.github.com/repos/usertesting/neo4j/deployments","created_at":"2014-09-09T14:42:09Z","updated_at":"2014-09-06T23:01:44Z","pushed_at":"2016-03-22T22:21:26Z","git_url":"git://github.com/usertesting/neo4j.git","ssh_url":"git@github.com:usertesting/neo4j.git","clone_url":"https://github.com/usertesting/neo4j.git","svn_url":"https://github.com/usertesting/neo4j","homepage":"http://neo4j.org","size":46273,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"neo4jrb:master","ref":"master","sha":"451b9d8530f2d9d3f5233d27d5653a7f9456102b","user":{"login":"neo4jrb","id":8579795,"avatar_url":"https://avatars.githubusercontent.com/u/8579795?v=3","gravatar_id":"","url":"https://api.github.com/users/neo4jrb","html_url":"https://github.com/neo4jrb","followers_url":"https://api.github.com/users/neo4jrb/followers","following_url":"https://api.github.com/users/neo4jrb/following{/other_user}","gists_url":"https://api.github.com/users/neo4jrb/gists{/gist_id}","starred_url":"https://api.github.com/users/neo4jrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neo4jrb/subscriptions","organizations_url":"https://api.github.com/users/neo4jrb/orgs","repos_url":"https://api.github.com/users/neo4jrb/repos","events_url":"https://api.github.com/users/neo4jrb/events{/privacy}","received_events_url":"https://api.github.com/users/neo4jrb/received_events","type":"Organization","site_admin":false},"repo":{"id":20724,"name":"neo4j","full_name":"neo4jrb/neo4j","owner":{"login":"neo4jrb","id":8579795,"avatar_url":"https://avatars.githubusercontent.com/u/8579795?v=3","gravatar_id":"","url":"https://api.github.com/users/neo4jrb","html_url":"https://github.com/neo4jrb","followers_url":"https://api.github.com/users/neo4jrb/followers","following_url":"https://api.github.com/users/neo4jrb/following{/other_user}","gists_url":"https://api.github.com/users/neo4jrb/gists{/gist_id}","starred_url":"https://api.github.com/users/neo4jrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neo4jrb/subscriptions","organizations_url":"https://api.github.com/users/neo4jrb/orgs","repos_url":"https://api.github.com/users/neo4jrb/repos","events_url":"https://api.github.com/users/neo4jrb/events{/privacy}","received_events_url":"https://api.github.com/users/neo4jrb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neo4jrb/neo4j","description":"An active model wrapper for the Neo4j Graph Database for Ruby.","fork":false,"url":"https://api.github.com/repos/neo4jrb/neo4j","forks_url":"https://api.github.com/repos/neo4jrb/neo4j/forks","keys_url":"https://api.github.com/repos/neo4jrb/neo4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neo4jrb/neo4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neo4jrb/neo4j/teams","hooks_url":"https://api.github.com/repos/neo4jrb/neo4j/hooks","issue_events_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/events{/number}","events_url":"https://api.github.com/repos/neo4jrb/neo4j/events","assignees_url":"https://api.github.com/repos/neo4jrb/neo4j/assignees{/user}","branches_url":"https://api.github.com/repos/neo4jrb/neo4j/branches{/branch}","tags_url":"https://api.github.com/repos/neo4jrb/neo4j/tags","blobs_url":"https://api.github.com/repos/neo4jrb/neo4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neo4jrb/neo4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neo4jrb/neo4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/neo4jrb/neo4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neo4jrb/neo4j/statuses/{sha}","languages_url":"https://api.github.com/repos/neo4jrb/neo4j/languages","stargazers_url":"https://api.github.com/repos/neo4jrb/neo4j/stargazers","contributors_url":"https://api.github.com/repos/neo4jrb/neo4j/contributors","subscribers_url":"https://api.github.com/repos/neo4jrb/neo4j/subscribers","subscription_url":"https://api.github.com/repos/neo4jrb/neo4j/subscription","commits_url":"https://api.github.com/repos/neo4jrb/neo4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/neo4jrb/neo4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/neo4jrb/neo4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/neo4jrb/neo4j/contents/{+path}","compare_url":"https://api.github.com/repos/neo4jrb/neo4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neo4jrb/neo4j/merges","archive_url":"https://api.github.com/repos/neo4jrb/neo4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neo4jrb/neo4j/downloads","issues_url":"https://api.github.com/repos/neo4jrb/neo4j/issues{/number}","pulls_url":"https://api.github.com/repos/neo4jrb/neo4j/pulls{/number}","milestones_url":"https://api.github.com/repos/neo4jrb/neo4j/milestones{/number}","notifications_url":"https://api.github.com/repos/neo4jrb/neo4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neo4jrb/neo4j/labels{/name}","releases_url":"https://api.github.com/repos/neo4jrb/neo4j/releases{/id}","deployments_url":"https://api.github.com/repos/neo4jrb/neo4j/deployments","created_at":"2008-05-30T10:44:36Z","updated_at":"2016-03-22T06:14:49Z","pushed_at":"2016-03-22T22:28:02Z","git_url":"git://github.com/neo4jrb/neo4j.git","ssh_url":"git@github.com:neo4jrb/neo4j.git","clone_url":"https://github.com/neo4jrb/neo4j.git","svn_url":"https://github.com/neo4jrb/neo4j","homepage":"http://neo4jrb.io","size":46675,"stargazers_count":1009,"watchers_count":1009,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":189,"mirror_url":null,"open_issues_count":108,"forks":189,"open_issues":108,"watchers":1009,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1166"},"html":{"href":"https://github.com/neo4jrb/neo4j/pull/1166"},"issue":{"href":"https://api.github.com/repos/neo4jrb/neo4j/issues/1166"},"comments":{"href":"https://api.github.com/repos/neo4jrb/neo4j/issues/1166/comments"},"review_comments":{"href":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1166/comments"},"review_comment":{"href":"https://api.github.com/repos/neo4jrb/neo4j/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neo4jrb/neo4j/pulls/1166/commits"},"statuses":{"href":"https://api.github.com/repos/neo4jrb/neo4j/statuses/c11ce2c520482c0b3a033336cba7a23d766dd87e"}}}}