{"action":"opened","issue":{"url":"https://api.github.com/repos/anlek/mongify/issues/111","repository_url":"https://api.github.com/repos/anlek/mongify","labels_url":"https://api.github.com/repos/anlek/mongify/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/anlek/mongify/issues/111/comments","events_url":"https://api.github.com/repos/anlek/mongify/issues/111/events","html_url":"https://github.com/anlek/mongify/issues/111","id":175683997,"number":111,"title":"How to reference to collection itself?","user":{"login":"dinhkhanh","id":663533,"avatar_url":"https://avatars.githubusercontent.com/u/663533?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhkhanh","html_url":"https://github.com/dinhkhanh","followers_url":"https://api.github.com/users/dinhkhanh/followers","following_url":"https://api.github.com/users/dinhkhanh/following{/other_user}","gists_url":"https://api.github.com/users/dinhkhanh/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhkhanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhkhanh/subscriptions","organizations_url":"https://api.github.com/users/dinhkhanh/orgs","repos_url":"https://api.github.com/users/dinhkhanh/repos","events_url":"https://api.github.com/users/dinhkhanh/events{/privacy}","received_events_url":"https://api.github.com/users/dinhkhanh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-08T07:29:29Z","updated_at":"2016-09-08T07:29:29Z","closed_at":null,"body":"I connect databases, translate and process successfully.\r\n\r\n```ruby\r\ntable \"Category\", :rename_to => 'categories' do\r\n    column \"CatID\", :key\r\n    column \"ParentID\", :rename_to => 'parent', :references => 'categories'\r\n    column \"CatName\", :string, :rename_to => 'title'\r\n    column \"CatNameAlias\", :string, :rename_to => 'slug'\r\n    column \"Active\", :integer, :rename_to => 'is_active'\r\n    column \"CatMetaTitle\", :text, :rename_to => 'meta_title'\r\n    column \"CatMetaDescription\", :text, :rename_to => 'meta_description'\r\n    column \"CatMetaKeywords\", :text, :ignore => true\r\nend\r\n```\r\n\r\nProblem is `parent` field in MongoDB document keeps using value of ParentID in MySQL. It's expected to be an ObjectID references to a `categories` document.\r\n\r\nHow to correct it? \r\n\r\nThanks in advanced. \r\n"}}
{"actor":{"display_login":"dinhkhanh"}}