{"action":"created","issue":{"url":"https://api.github.com/repos/JeffreyWay/Laravel-4-Generators/issues/430","labels_url":"https://api.github.com/repos/JeffreyWay/Laravel-4-Generators/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/JeffreyWay/Laravel-4-Generators/issues/430/comments","events_url":"https://api.github.com/repos/JeffreyWay/Laravel-4-Generators/issues/430/events","html_url":"https://github.com/JeffreyWay/Laravel-4-Generators/issues/430","id":50457049,"number":430,"title":"How to create post_id instead of id ?","user":{"login":"darkcyber","id":6040969,"avatar_url":"https://avatars.githubusercontent.com/u/6040969?v=3","gravatar_id":"","url":"https://api.github.com/users/darkcyber","html_url":"https://github.com/darkcyber","followers_url":"https://api.github.com/users/darkcyber/followers","following_url":"https://api.github.com/users/darkcyber/following{/other_user}","gists_url":"https://api.github.com/users/darkcyber/gists{/gist_id}","starred_url":"https://api.github.com/users/darkcyber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkcyber/subscriptions","organizations_url":"https://api.github.com/users/darkcyber/orgs","repos_url":"https://api.github.com/users/darkcyber/repos","events_url":"https://api.github.com/users/darkcyber/events{/privacy}","received_events_url":"https://api.github.com/users/darkcyber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-30T12:58:22Z","updated_at":"2015-01-17T11:57:32Z","closed_at":null,"body":"Hello,\r\n\r\nBy default this generator will create \"id\" as primary key in the migration file , then i want to ask how to change \"id\" with something like \"post_id\" as primary key , so in the migration file only post_id fields and the other not \"id\",\"post_id\", and the other ?\r\nSo is there any way to change default id fields ? or we must change it manually in the migration file ?\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/JeffreyWay/Laravel-4-Generators/issues/comments/70364382","html_url":"https://github.com/JeffreyWay/Laravel-4-Generators/issues/430#issuecomment-70364382","issue_url":"https://api.github.com/repos/JeffreyWay/Laravel-4-Generators/issues/430","id":70364382,"user":{"login":"idhamperdameian","id":3077042,"avatar_url":"https://avatars.githubusercontent.com/u/3077042?v=3","gravatar_id":"","url":"https://api.github.com/users/idhamperdameian","html_url":"https://github.com/idhamperdameian","followers_url":"https://api.github.com/users/idhamperdameian/followers","following_url":"https://api.github.com/users/idhamperdameian/following{/other_user}","gists_url":"https://api.github.com/users/idhamperdameian/gists{/gist_id}","starred_url":"https://api.github.com/users/idhamperdameian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idhamperdameian/subscriptions","organizations_url":"https://api.github.com/users/idhamperdameian/orgs","repos_url":"https://api.github.com/users/idhamperdameian/repos","events_url":"https://api.github.com/users/idhamperdameian/events{/privacy}","received_events_url":"https://api.github.com/users/idhamperdameian/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T11:57:32Z","updated_at":"2015-01-17T11:57:32Z","body":"\"id\" is default Laravel primary key convention, if you want change to other, you may define a primaryKey property to override the convention."}}