{"action":"opened","issue":{"url":"https://api.github.com/repos/balderdashy/sails-postgresql/issues/242","repository_url":"https://api.github.com/repos/balderdashy/sails-postgresql","labels_url":"https://api.github.com/repos/balderdashy/sails-postgresql/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails-postgresql/issues/242/comments","events_url":"https://api.github.com/repos/balderdashy/sails-postgresql/issues/242/events","html_url":"https://github.com/balderdashy/sails-postgresql/issues/242","id":147264017,"number":242,"title":"attribut columnName doesn't work after update to version 0.12.1","user":{"login":"masitko","id":2485081,"avatar_url":"https://avatars.githubusercontent.com/u/2485081?v=3","gravatar_id":"","url":"https://api.github.com/users/masitko","html_url":"https://github.com/masitko","followers_url":"https://api.github.com/users/masitko/followers","following_url":"https://api.github.com/users/masitko/following{/other_user}","gists_url":"https://api.github.com/users/masitko/gists{/gist_id}","starred_url":"https://api.github.com/users/masitko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masitko/subscriptions","organizations_url":"https://api.github.com/users/masitko/orgs","repos_url":"https://api.github.com/users/masitko/repos","events_url":"https://api.github.com/users/masitko/events{/privacy}","received_events_url":"https://api.github.com/users/masitko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-10T20:38:06Z","updated_at":"2016-04-10T20:38:06Z","closed_at":null,"body":"after updating sails-postgresql to version 0.12.1 there is an error when trying to lift sails:\r\n```\r\nerror: error: A hook (`orm`) failed to load!\r\nerror: error: Error (E_UNKNOWN) :: Encountered an unexpected error\r\nerror: column author.createdUser does not exist\r\n    at Connection.parseE (/var/www/html/ccentre/backend/node_modules/sails-postgresql/node_modules/pg/lib/connection.js:539:11)\r\n    at Connection.parseMessage (/var/www/html/ccentre/backend/node_modules/sails-postgresql/node_modules/pg/lib/connection.js:366:17)\r\n    at Socket.<anonymous> (/var/www/html/ccentre/backend/node_modules/sails-postgresql/node_modules/pg/lib/connection.js:105:22)\r\n    at emitOne (events.js:90:13)\r\n    at Socket.emit (events.js:182:7)\r\n    at readableAddChunk (_stream_readable.js:147:16)\r\n    at Socket.Readable.push (_stream_readable.js:111:10)\r\n    at TCP.onread (net.js:523:20)\r\n```\r\nthis error seems to me related to attribute 'columnName'.\r\nThis is my createdUser definition:\r\n```\r\n  attributes: {\r\n    // Relation to User object via created user id\r\n    createdUser: {\r\n      model: 'User',\r\n      columnName: 'createdUserId',\r\n      defaultsTo: null\r\n    },\r\n```\r\nwhen columnName is removed all works fine (re-created database with default key names)"}}