{"action":"closed","issue":{"url":"https://api.github.com/repos/yogthos/migratus/issues/57","repository_url":"https://api.github.com/repos/yogthos/migratus","labels_url":"https://api.github.com/repos/yogthos/migratus/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/yogthos/migratus/issues/57/comments","events_url":"https://api.github.com/repos/yogthos/migratus/issues/57/events","html_url":"https://github.com/yogthos/migratus/issues/57","id":135768406,"number":57,"title":"`create` will put migrations in the root directory if the :migration-dir doesn't exist","user":{"login":"mveytsman","id":34720,"avatar_url":"https://avatars.githubusercontent.com/u/34720?v=3","gravatar_id":"","url":"https://api.github.com/users/mveytsman","html_url":"https://github.com/mveytsman","followers_url":"https://api.github.com/users/mveytsman/followers","following_url":"https://api.github.com/users/mveytsman/following{/other_user}","gists_url":"https://api.github.com/users/mveytsman/gists{/gist_id}","starred_url":"https://api.github.com/users/mveytsman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mveytsman/subscriptions","organizations_url":"https://api.github.com/users/mveytsman/orgs","repos_url":"https://api.github.com/users/mveytsman/repos","events_url":"https://api.github.com/users/mveytsman/events{/privacy}","received_events_url":"https://api.github.com/users/mveytsman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-23T15:30:36Z","updated_at":"2016-02-23T18:38:59Z","closed_at":"2016-02-23T18:38:59Z","body":"When I have a config like\r\n\r\n```clojure\r\n(def config {:store :database\r\n             :migration-dir \"this_is_a_directory_that_doesnt_exist/\"\r\n             :migration-table-name \"migrations\"\r\n             :db \"com.mysql.jdbc.Driver\"\r\n             :subprotocol \"postgresql\"\r\n             :subname \"//localhost/mydbi\"})\r\n```\r\n\r\nrunning\r\n\r\n`(migratus.core/create config \"my-migration\")` will put the migration file in the root directory of my project.\r\n\r\nI'm willing to work on this, if you let me know what you think default behavior should be. Should we create the directory, or throw an error? "}}