{"action":"created","issue":{"url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1365","repository_url":"https://api.github.com/repos/neo4jrb/neo4j","labels_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1365/labels{/name}","comments_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1365/comments","events_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1365/events","html_url":"https://github.com/neo4jrb/neo4j/issues/1365","id":215024807,"number":1365,"title":"Make it clear that RAILS_ENV=test is required for migrations","user":{"login":"wjdhamilton","id":7499818,"avatar_url":"https://avatars2.githubusercontent.com/u/7499818?v=3","gravatar_id":"","url":"https://api.github.com/users/wjdhamilton","html_url":"https://github.com/wjdhamilton","followers_url":"https://api.github.com/users/wjdhamilton/followers","following_url":"https://api.github.com/users/wjdhamilton/following{/other_user}","gists_url":"https://api.github.com/users/wjdhamilton/gists{/gist_id}","starred_url":"https://api.github.com/users/wjdhamilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjdhamilton/subscriptions","organizations_url":"https://api.github.com/users/wjdhamilton/orgs","repos_url":"https://api.github.com/users/wjdhamilton/repos","events_url":"https://api.github.com/users/wjdhamilton/events{/privacy}","received_events_url":"https://api.github.com/users/wjdhamilton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-17T14:46:37Z","updated_at":"2017-03-18T00:20:02Z","closed_at":null,"body":"This is a bit of silly thing, but there are several commands that are used to manipulate the database where the database can be specified by appending `[name]`.\r\n\r\ne.g.`rake neo4j:start[test]`\r\n\r\nHowever, this is not the case for migrations. \r\n\r\nFor instance: `rake neo4j:migrate[test]` runs, but it does not migrate the test database. As you probably know, this is the correct command:\r\n\r\n`rake neo4j:migrate RAILS_ENV=test`\r\n\r\nIt would be good if either the `[name]` element is respected, or if the command could print a warning to say that it isn't. \r\n\r\nNeo4j database version:\r\n`neo4j` gem version: 8.0.10\r\n`neo4j-core` gem version: 7.0.8\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/neo4jrb/neo4j/issues/comments/287501360","html_url":"https://github.com/neo4jrb/neo4j/issues/1365#issuecomment-287501360","issue_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1365","id":287501360,"user":{"login":"cheerfulstoic","id":301415,"avatar_url":"https://avatars3.githubusercontent.com/u/301415?v=3","gravatar_id":"","url":"https://api.github.com/users/cheerfulstoic","html_url":"https://github.com/cheerfulstoic","followers_url":"https://api.github.com/users/cheerfulstoic/followers","following_url":"https://api.github.com/users/cheerfulstoic/following{/other_user}","gists_url":"https://api.github.com/users/cheerfulstoic/gists{/gist_id}","starred_url":"https://api.github.com/users/cheerfulstoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheerfulstoic/subscriptions","organizations_url":"https://api.github.com/users/cheerfulstoic/orgs","repos_url":"https://api.github.com/users/cheerfulstoic/repos","events_url":"https://api.github.com/users/cheerfulstoic/events{/privacy}","received_events_url":"https://api.github.com/users/cheerfulstoic/received_events","type":"User","site_admin":false},"created_at":"2017-03-18T00:20:02Z","updated_at":"2017-03-18T00:20:02Z","body":"It's a good point.  The difference comes in because using `RAILS_ENV=test` is from the Rails' convention.  `rake neo4j:start` (and the other `neo4j` commands) are intended to be independent of Rails or any other framework.  They are tasks from the `neo4j-rake_tasks` gem which can be included separately, if you like.  Thus you could do `rake neo4j:start[something_crazy]` and all it would do is just put the database into a `something_crazy` folder.  The only link between the two is the ports that you choose to configure the database with and specifying those same ports for your app.  Does that make sense?"}}
{"actor":{"display_login":"cheerfulstoic"}}