{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/196","repository_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/196/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/196/events","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/196","id":137698088,"number":196,"title":"How to create an admin with heroku pg:psql?","user":{"login":"jenweber","id":16627268,"avatar_url":"https://avatars.githubusercontent.com/u/16627268?v=3","gravatar_id":"","url":"https://api.github.com/users/jenweber","html_url":"https://github.com/jenweber","followers_url":"https://api.github.com/users/jenweber/followers","following_url":"https://api.github.com/users/jenweber/following{/other_user}","gists_url":"https://api.github.com/users/jenweber/gists{/gist_id}","starred_url":"https://api.github.com/users/jenweber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenweber/subscriptions","organizations_url":"https://api.github.com/users/jenweber/orgs","repos_url":"https://api.github.com/users/jenweber/repos","events_url":"https://api.github.com/users/jenweber/events{/privacy}","received_events_url":"https://api.github.com/users/jenweber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-01T21:54:52Z","updated_at":"2016-03-01T23:09:14Z","closed_at":null,"body":"I tried entering the following in heroku dbconsole, but it wouldn't run. Am I missing some closing punctuation? Is this not the right kind of command?\r\n\r\n```\r\nINSERT INTO users(email,password,password_confirmation)\r\nVALUES('admin@plotpointo.com','admin','admin');\r\n```\r\n\r\nplot-point-o-api::DATABASE=> INSERT INTO users(email,password,password_confirmation)\r\nplot-point-o-api::DATABASE-> VALUES('admin@plotpointo.com','admin','admin');\r\nERROR:  column \"password\" of relation \"users\" does not exist\r\nLINE 1: INSERT INTO users(email,password,password_confirmation)"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/comments/190954832","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/196#issuecomment-190954832","issue_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/196","id":190954832,"user":{"login":"jenweber","id":16627268,"avatar_url":"https://avatars.githubusercontent.com/u/16627268?v=3","gravatar_id":"","url":"https://api.github.com/users/jenweber","html_url":"https://github.com/jenweber","followers_url":"https://api.github.com/users/jenweber/followers","following_url":"https://api.github.com/users/jenweber/following{/other_user}","gists_url":"https://api.github.com/users/jenweber/gists{/gist_id}","starred_url":"https://api.github.com/users/jenweber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenweber/subscriptions","organizations_url":"https://api.github.com/users/jenweber/orgs","repos_url":"https://api.github.com/users/jenweber/repos","events_url":"https://api.github.com/users/jenweber/events{/privacy}","received_events_url":"https://api.github.com/users/jenweber/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T23:09:14Z","updated_at":"2016-03-01T23:09:14Z","body":"I successfully created an admin on heroku (I can see it if I select * from users in the heroku db console). However I am not able to log in with those credentials. Here's the front end error message:\r\n\r\n> XMLHttpRequest cannot load https://plot-point-o-api.herokuapp.com/sign-in. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404."}}