{"action":"created","comment":{"url":"https://api.github.com/repos/2gis/vmmaster/pulls/comments/35296824","id":35296824,"diff_hunk":"@@ -103,35 +186,44 @@ class UserGroup(Base):\n     id = Column(Integer, primary_key=True)\n     name = Column(String(length=20), unique=True, nullable=False)\n \n+    # Relationships\n     users = relationship(User, backref=\"group\", passive_deletes=True)\n \n \n-class VirtualMachine(Base):\n+class VirtualMachine(Base, FeaturesMixin):\n     __tablename__ = 'virtual_machines'\n \n     id = Column(Integer, primary_key=True)\n+    name = Column(String)\n+    ip = Column(String)","path":"vmmaster/core/db/models.py","position":224,"original_position":224,"commit_id":"bba228f81efc4ded00f9d5d6651128eb8a8a934b","original_commit_id":"bba228f81efc4ded00f9d5d6651128eb8a8a934b","user":{"login":"z00sts","id":5012880,"avatar_url":"https://avatars.githubusercontent.com/u/5012880?v=3","gravatar_id":"","url":"https://api.github.com/users/z00sts","html_url":"https://github.com/z00sts","followers_url":"https://api.github.com/users/z00sts/followers","following_url":"https://api.github.com/users/z00sts/following{/other_user}","gists_url":"https://api.github.com/users/z00sts/gists{/gist_id}","starred_url":"https://api.github.com/users/z00sts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z00sts/subscriptions","organizations_url":"https://api.github.com/users/z00sts/orgs","repos_url":"https://api.github.com/users/z00sts/repos","events_url":"https://api.github.com/users/z00sts/events{/privacy}","received_events_url":"https://api.github.com/users/z00sts/received_events","type":"User","site_admin":false},"body":"@sh0ked Нет, дефолтные None. Но при этом нельзя в инит передавать пустые. Так что мы всегда создаем с нормальными.","created_at":"2015-07-23T07:47:22Z","updated_at":"2015-07-23T07:47:22Z","html_url":"https://github.com/2gis/vmmaster/pull/87#discussion_r35296824","pull_request_url":"https://api.github.com/repos/2gis/vmmaster/pulls/87","_links":{"self":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/comments/35296824"},"html":{"href":"https://github.com/2gis/vmmaster/pull/87#discussion_r35296824"},"pull_request":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/2gis/vmmaster/pulls/87","id":40549849,"html_url":"https://github.com/2gis/vmmaster/pull/87","diff_url":"https://github.com/2gis/vmmaster/pull/87.diff","patch_url":"https://github.com/2gis/vmmaster/pull/87.patch","issue_url":"https://api.github.com/repos/2gis/vmmaster/issues/87","number":87,"state":"open","locked":false,"title":"Sessions in Database","user":{"login":"z00sts","id":5012880,"avatar_url":"https://avatars.githubusercontent.com/u/5012880?v=3","gravatar_id":"","url":"https://api.github.com/users/z00sts","html_url":"https://github.com/z00sts","followers_url":"https://api.github.com/users/z00sts/followers","following_url":"https://api.github.com/users/z00sts/following{/other_user}","gists_url":"https://api.github.com/users/z00sts/gists{/gist_id}","starred_url":"https://api.github.com/users/z00sts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z00sts/subscriptions","organizations_url":"https://api.github.com/users/z00sts/orgs","repos_url":"https://api.github.com/users/z00sts/repos","events_url":"https://api.github.com/users/z00sts/events{/privacy}","received_events_url":"https://api.github.com/users/z00sts/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-22T10:17:52Z","updated_at":"2015-07-23T07:47:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a386f9610ec7bb893a605f80590170dda4a7bf6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/2gis/vmmaster/pulls/87/commits","review_comments_url":"https://api.github.com/repos/2gis/vmmaster/pulls/87/comments","review_comment_url":"https://api.github.com/repos/2gis/vmmaster/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2gis/vmmaster/issues/87/comments","statuses_url":"https://api.github.com/repos/2gis/vmmaster/statuses/bba228f81efc4ded00f9d5d6651128eb8a8a934b","head":{"label":"2gis:sessions-in-db","ref":"sessions-in-db","sha":"bba228f81efc4ded00f9d5d6651128eb8a8a934b","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":31351213,"name":"vmmaster","full_name":"2gis/vmmaster","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/vmmaster","description":"Automatic virtual machines manager for selenium-based testing","fork":false,"url":"https://api.github.com/repos/2gis/vmmaster","forks_url":"https://api.github.com/repos/2gis/vmmaster/forks","keys_url":"https://api.github.com/repos/2gis/vmmaster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/vmmaster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/vmmaster/teams","hooks_url":"https://api.github.com/repos/2gis/vmmaster/hooks","issue_events_url":"https://api.github.com/repos/2gis/vmmaster/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/vmmaster/events","assignees_url":"https://api.github.com/repos/2gis/vmmaster/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/vmmaster/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/vmmaster/tags","blobs_url":"https://api.github.com/repos/2gis/vmmaster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/vmmaster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/vmmaster/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/vmmaster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/vmmaster/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/vmmaster/languages","stargazers_url":"https://api.github.com/repos/2gis/vmmaster/stargazers","contributors_url":"https://api.github.com/repos/2gis/vmmaster/contributors","subscribers_url":"https://api.github.com/repos/2gis/vmmaster/subscribers","subscription_url":"https://api.github.com/repos/2gis/vmmaster/subscription","commits_url":"https://api.github.com/repos/2gis/vmmaster/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/vmmaster/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/vmmaster/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/vmmaster/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/vmmaster/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/vmmaster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/vmmaster/merges","archive_url":"https://api.github.com/repos/2gis/vmmaster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/vmmaster/downloads","issues_url":"https://api.github.com/repos/2gis/vmmaster/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/vmmaster/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/vmmaster/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/vmmaster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/vmmaster/labels{/name}","releases_url":"https://api.github.com/repos/2gis/vmmaster/releases{/id}","created_at":"2015-02-26T04:53:56Z","updated_at":"2015-07-01T15:49:00Z","pushed_at":"2015-07-23T07:17:17Z","git_url":"git://github.com/2gis/vmmaster.git","ssh_url":"git@github.com:2gis/vmmaster.git","clone_url":"https://github.com/2gis/vmmaster.git","svn_url":"https://github.com/2gis/vmmaster","homepage":"","size":2710,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":6,"default_branch":"master"}},"base":{"label":"2gis:master","ref":"master","sha":"61eb68389a9845beff4323fca16a69d0094220f7","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":31351213,"name":"vmmaster","full_name":"2gis/vmmaster","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/vmmaster","description":"Automatic virtual machines manager for selenium-based testing","fork":false,"url":"https://api.github.com/repos/2gis/vmmaster","forks_url":"https://api.github.com/repos/2gis/vmmaster/forks","keys_url":"https://api.github.com/repos/2gis/vmmaster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/vmmaster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/vmmaster/teams","hooks_url":"https://api.github.com/repos/2gis/vmmaster/hooks","issue_events_url":"https://api.github.com/repos/2gis/vmmaster/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/vmmaster/events","assignees_url":"https://api.github.com/repos/2gis/vmmaster/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/vmmaster/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/vmmaster/tags","blobs_url":"https://api.github.com/repos/2gis/vmmaster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/vmmaster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/vmmaster/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/vmmaster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/vmmaster/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/vmmaster/languages","stargazers_url":"https://api.github.com/repos/2gis/vmmaster/stargazers","contributors_url":"https://api.github.com/repos/2gis/vmmaster/contributors","subscribers_url":"https://api.github.com/repos/2gis/vmmaster/subscribers","subscription_url":"https://api.github.com/repos/2gis/vmmaster/subscription","commits_url":"https://api.github.com/repos/2gis/vmmaster/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/vmmaster/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/vmmaster/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/vmmaster/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/vmmaster/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/vmmaster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/vmmaster/merges","archive_url":"https://api.github.com/repos/2gis/vmmaster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/vmmaster/downloads","issues_url":"https://api.github.com/repos/2gis/vmmaster/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/vmmaster/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/vmmaster/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/vmmaster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/vmmaster/labels{/name}","releases_url":"https://api.github.com/repos/2gis/vmmaster/releases{/id}","created_at":"2015-02-26T04:53:56Z","updated_at":"2015-07-01T15:49:00Z","pushed_at":"2015-07-23T07:17:17Z","git_url":"git://github.com/2gis/vmmaster.git","ssh_url":"git@github.com:2gis/vmmaster.git","clone_url":"https://github.com/2gis/vmmaster.git","svn_url":"https://github.com/2gis/vmmaster","homepage":"","size":2710,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/87"},"html":{"href":"https://github.com/2gis/vmmaster/pull/87"},"issue":{"href":"https://api.github.com/repos/2gis/vmmaster/issues/87"},"comments":{"href":"https://api.github.com/repos/2gis/vmmaster/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/2gis/vmmaster/statuses/bba228f81efc4ded00f9d5d6651128eb8a8a934b"}}}}