{"action":"created","issue":{"url":"https://api.github.com/repos/Prismatik/redbeard/issues/23","repository_url":"https://api.github.com/repos/Prismatik/redbeard","labels_url":"https://api.github.com/repos/Prismatik/redbeard/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/Prismatik/redbeard/issues/23/comments","events_url":"https://api.github.com/repos/Prismatik/redbeard/issues/23/events","html_url":"https://github.com/Prismatik/redbeard/pull/23","id":146146073,"number":23,"title":"Migrations","user":{"login":"davidbanham","id":631832,"avatar_url":"https://avatars.githubusercontent.com/u/631832?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbanham","html_url":"https://github.com/davidbanham","followers_url":"https://api.github.com/users/davidbanham/followers","following_url":"https://api.github.com/users/davidbanham/following{/other_user}","gists_url":"https://api.github.com/users/davidbanham/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbanham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbanham/subscriptions","organizations_url":"https://api.github.com/users/davidbanham/orgs","repos_url":"https://api.github.com/users/davidbanham/repos","events_url":"https://api.github.com/users/davidbanham/events{/privacy}","received_events_url":"https://api.github.com/users/davidbanham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nwinch","id":1647098,"avatar_url":"https://avatars.githubusercontent.com/u/1647098?v=3","gravatar_id":"","url":"https://api.github.com/users/nwinch","html_url":"https://github.com/nwinch","followers_url":"https://api.github.com/users/nwinch/followers","following_url":"https://api.github.com/users/nwinch/following{/other_user}","gists_url":"https://api.github.com/users/nwinch/gists{/gist_id}","starred_url":"https://api.github.com/users/nwinch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwinch/subscriptions","organizations_url":"https://api.github.com/users/nwinch/orgs","repos_url":"https://api.github.com/users/nwinch/repos","events_url":"https://api.github.com/users/nwinch/events{/privacy}","received_events_url":"https://api.github.com/users/nwinch/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-04-06T00:12:28Z","updated_at":"2016-04-11T02:24:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Prismatik/redbeard/pulls/23","html_url":"https://github.com/Prismatik/redbeard/pull/23","diff_url":"https://github.com/Prismatik/redbeard/pull/23.diff","patch_url":"https://github.com/Prismatik/redbeard/pull/23.patch"},"body":"This PR adds:\r\n\r\n* Scaffolds for writing new migration files with tests\r\n* A util to run migrations both up and down with `npm run migrate`\r\n* An optional (on by default) mechanism to automatically run all upwards migrations when the service is started\r\n\r\nComing in the near future will be the addition of a lock in the database when a process is running migrations. That way you can leave automigrate on and not worry about multiple instances of the app trying to run migrations simultaneously. Submitting this PR before then so that there's less changes to review."},"comment":{"url":"https://api.github.com/repos/Prismatik/redbeard/issues/comments/208121981","html_url":"https://github.com/Prismatik/redbeard/pull/23#issuecomment-208121981","issue_url":"https://api.github.com/repos/Prismatik/redbeard/issues/23","id":208121981,"user":{"login":"davidbanham","id":631832,"avatar_url":"https://avatars.githubusercontent.com/u/631832?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbanham","html_url":"https://github.com/davidbanham","followers_url":"https://api.github.com/users/davidbanham/followers","following_url":"https://api.github.com/users/davidbanham/following{/other_user}","gists_url":"https://api.github.com/users/davidbanham/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbanham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbanham/subscriptions","organizations_url":"https://api.github.com/users/davidbanham/orgs","repos_url":"https://api.github.com/users/davidbanham/repos","events_url":"https://api.github.com/users/davidbanham/events{/privacy}","received_events_url":"https://api.github.com/users/davidbanham/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T02:24:27Z","updated_at":"2016-04-11T02:24:27Z","body":"@nwinch many thanks! Replies are all in. Let me know what you think."}}