{"action":"created","issue":{"url":"https://api.github.com/repos/ga-dc/project2/issues/345","labels_url":"https://api.github.com/repos/ga-dc/project2/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/project2/issues/345/comments","events_url":"https://api.github.com/repos/ga-dc/project2/issues/345/events","html_url":"https://github.com/ga-dc/project2/issues/345","id":117443670,"number":345,"title":"Heroku app works but can't seed data - seed works fine on local machine","user":{"login":"ckib16","id":2160186,"avatar_url":"https://avatars.githubusercontent.com/u/2160186?v=3","gravatar_id":"","url":"https://api.github.com/users/ckib16","html_url":"https://github.com/ckib16","followers_url":"https://api.github.com/users/ckib16/followers","following_url":"https://api.github.com/users/ckib16/following{/other_user}","gists_url":"https://api.github.com/users/ckib16/gists{/gist_id}","starred_url":"https://api.github.com/users/ckib16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckib16/subscriptions","organizations_url":"https://api.github.com/users/ckib16/orgs","repos_url":"https://api.github.com/users/ckib16/repos","events_url":"https://api.github.com/users/ckib16/events{/privacy}","received_events_url":"https://api.github.com/users/ckib16/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"RobertAKARobin","id":6268177,"avatar_url":"https://avatars.githubusercontent.com/u/6268177?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertAKARobin","html_url":"https://github.com/RobertAKARobin","followers_url":"https://api.github.com/users/RobertAKARobin/followers","following_url":"https://api.github.com/users/RobertAKARobin/following{/other_user}","gists_url":"https://api.github.com/users/RobertAKARobin/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertAKARobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertAKARobin/subscriptions","organizations_url":"https://api.github.com/users/RobertAKARobin/orgs","repos_url":"https://api.github.com/users/RobertAKARobin/repos","events_url":"https://api.github.com/users/RobertAKARobin/events{/privacy}","received_events_url":"https://api.github.com/users/RobertAKARobin/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-17T20:31:19Z","updated_at":"2015-11-17T20:32:08Z","closed_at":null,"body":"# Problem: \r\nmy heroku app runs. But Heroku can't load the seed.rb data I have built\r\nMy seed.rb file works flawlessly on my local Mac.\r\nHeroku link: https://pilot-tracker.herokuapp.com/\r\nGithub link: https://github.com/ckib16/pilot_tracker\r\n\r\n## Heroku deployment steps I took:\r\n```\r\ngit push heroku master\r\ngit run rake db:migrate\r\ngit run rake db:seed\r\n```\r\n## Main error I get when running `heroku run rake db:seed`: \r\n```\r\n[14:53]~/wdi/projects/pilot_tracker > heroku run rake db:seed\r\nRunning rake db:seed on pilot-tracker... up, run.6160\r\n  ActiveRecord::SchemaMigration Load (2.9ms)  SELECT \"schema_migrations\".* FROM \"schema_migrations\"\r\n  Location Load (3.3ms)  SELECT \"locations\".* FROM \"locations\"\r\nrake aborted!\r\nActiveRecord::UnknownAttributeError: unknown attribute 'emblem_url' for Location.\r\n```\r\n### Full errors:\r\nBash: https://gist.github.com/ckib16/87136c3ad9a6bcd9aa05\r\nHeroku logs: https://gist.github.com/ckib16/2f80ca6389644bff9190\r\n\r\n## Troubleshooting:\r\n- ran through Heroku troubleshooting checklist from lesson multiple times\r\n- tried `heroku restart --app pilot-tracker ` - see http://stackoverflow.com/questions/8139578/activerecordunknownattributeerror\r\n- ensured the app loads and runs correctly in Heroku (just can't load seed data)\r\n\r\nNote: I did unintentionally push from a branch instead of master for my 1st Heroku deployment. But I fixed it and got the app working.\r\n"},"comment":{"url":"https://api.github.com/repos/ga-dc/project2/issues/comments/157498069","html_url":"https://github.com/ga-dc/project2/issues/345#issuecomment-157498069","issue_url":"https://api.github.com/repos/ga-dc/project2/issues/345","id":157498069,"user":{"login":"RobertAKARobin","id":6268177,"avatar_url":"https://avatars.githubusercontent.com/u/6268177?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertAKARobin","html_url":"https://github.com/RobertAKARobin","followers_url":"https://api.github.com/users/RobertAKARobin/followers","following_url":"https://api.github.com/users/RobertAKARobin/following{/other_user}","gists_url":"https://api.github.com/users/RobertAKARobin/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertAKARobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertAKARobin/subscriptions","organizations_url":"https://api.github.com/users/RobertAKARobin/orgs","repos_url":"https://api.github.com/users/RobertAKARobin/repos","events_url":"https://api.github.com/users/RobertAKARobin/events{/privacy}","received_events_url":"https://api.github.com/users/RobertAKARobin/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T20:32:08Z","updated_at":"2015-11-17T20:32:08Z","body":"Dang. Nice markdown, Chris!"}}