{"action":"closed","issue":{"url":"https://api.github.com/repos/building5/sails-db-migrate/issues/20","repository_url":"https://api.github.com/repos/building5/sails-db-migrate","labels_url":"https://api.github.com/repos/building5/sails-db-migrate/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/building5/sails-db-migrate/issues/20/comments","events_url":"https://api.github.com/repos/building5/sails-db-migrate/issues/20/events","html_url":"https://github.com/building5/sails-db-migrate/issues/20","id":119066121,"number":20,"title":"Adding environment options","user":{"login":"toptierlabs","id":1096859,"avatar_url":"https://avatars.githubusercontent.com/u/1096859?v=3","gravatar_id":"","url":"https://api.github.com/users/toptierlabs","html_url":"https://github.com/toptierlabs","followers_url":"https://api.github.com/users/toptierlabs/followers","following_url":"https://api.github.com/users/toptierlabs/following{/other_user}","gists_url":"https://api.github.com/users/toptierlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/toptierlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toptierlabs/subscriptions","organizations_url":"https://api.github.com/users/toptierlabs/orgs","repos_url":"https://api.github.com/users/toptierlabs/repos","events_url":"https://api.github.com/users/toptierlabs/events{/privacy}","received_events_url":"https://api.github.com/users/toptierlabs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T15:36:37Z","updated_at":"2016-03-08T22:20:57Z","closed_at":"2016-03-08T22:20:57Z","body":"It would be great if one could set the environment in which to run the migrations.\r\nFor example in rails, one has to do: \r\nrake db:migrate RAILS_ENV=testing\r\n\r\nso it would be cool to add this to sails-db-migrate.\r\n\r\ngrunt db:migrate SAILS_ENV=testing\r\n\r\nWhat do you think?"}}