{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/27299","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/27299/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/27299/comments","events_url":"https://api.github.com/repos/rails/rails/issues/27299/events","html_url":"https://github.com/rails/rails/issues/27299","id":194195296,"number":27299,"title":"When I run ENV=development rake db:create I don't expect it to try and create the test db too","user":{"login":"ioquatix","id":30030,"avatar_url":"https://avatars.githubusercontent.com/u/30030?v=3","gravatar_id":"","url":"https://api.github.com/users/ioquatix","html_url":"https://github.com/ioquatix","followers_url":"https://api.github.com/users/ioquatix/followers","following_url":"https://api.github.com/users/ioquatix/following{/other_user}","gists_url":"https://api.github.com/users/ioquatix/gists{/gist_id}","starred_url":"https://api.github.com/users/ioquatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioquatix/subscriptions","organizations_url":"https://api.github.com/users/ioquatix/orgs","repos_url":"https://api.github.com/users/ioquatix/repos","events_url":"https://api.github.com/users/ioquatix/events{/privacy}","received_events_url":"https://api.github.com/users/ioquatix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-07T22:48:19Z","updated_at":"2016-12-10T03:43:10Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\nAccording to the following code: https://github.com/rails/rails/blob/3f279977ead48ace1acf53567fd258fe140e3b6f/activerecord/lib/active_record/tasks/database_tasks.rb#L286-L288\r\n\r\nWhen running something like this:\r\n\r\n```\r\nENV=development rake db:create\r\n```\r\n\r\nIt also tries to create test.\r\n\r\nI think this is violating the principle of least surprise. At a cursory glance, this also applies to `drop_current` which might be even more surprising.\r\n\r\n### Expected behavior\r\nOnly development environment is created.\r\n\r\n### Actual behavior\r\nIt tries to create test database too.\r\n\r\n### System configuration\r\nLatest."},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/266176526","html_url":"https://github.com/rails/rails/issues/27299#issuecomment-266176526","issue_url":"https://api.github.com/repos/rails/rails/issues/27299","id":266176526,"user":{"login":"ioquatix","id":30030,"avatar_url":"https://avatars.githubusercontent.com/u/30030?v=3","gravatar_id":"","url":"https://api.github.com/users/ioquatix","html_url":"https://github.com/ioquatix","followers_url":"https://api.github.com/users/ioquatix/followers","following_url":"https://api.github.com/users/ioquatix/following{/other_user}","gists_url":"https://api.github.com/users/ioquatix/gists{/gist_id}","starred_url":"https://api.github.com/users/ioquatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioquatix/subscriptions","organizations_url":"https://api.github.com/users/ioquatix/orgs","repos_url":"https://api.github.com/users/ioquatix/repos","events_url":"https://api.github.com/users/ioquatix/events{/privacy}","received_events_url":"https://api.github.com/users/ioquatix/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T03:43:10Z","updated_at":"2016-12-10T03:43:10Z","body":"Honestly, the db:* tasks seem like a bit of a mess. For all the above reasons.. and the way they tie into Rails by default, which breaks unless you override a magical set of variables on \"module DatabaseTasks\" which in the documentation is described as a class."}}
{"actor":{"display_login":"ioquatix"}}