{"action":"created","comment":{"url":"https://api.github.com/repos/santiment/sanbase2/pulls/comments/151164363","pull_request_review_id":76827736,"id":151164363,"diff_hunk":"@@ -0,0 +1,33 @@\n+defmodule Sanbase.Model.Ico do\n+  use Ecto.Schema\n+  import Ecto.Changeset\n+  alias Sanbase.Model.Ico\n+  alias Sanbase.Model.Project\n+  alias Sanbase.Model.Currency\n+\n+\n+  schema \"icos\" do\n+    field :start_date, Ecto.Date\n+    field :end_date, Ecto.Date\n+    field :tokens_issued_at_ico, :decimal\n+    field :tokens_sold_at_ico, :decimal\n+    field :funds_raised_btc, :decimal\n+    field :usd_btc_icoend, :decimal\n+    field :usd_eth_icoend, :decimal\n+    field :minimal_cap_amount, :decimal\n+    field :maximal_cap_amount, :decimal\n+    field :main_contract_address, :string\n+    field :comments, :string\n+    belongs_to :project, Project\n+    belongs_to :cap_currency, Currency, on_replace: :nilify","path":"lib/sanbase/model/ico.ex","position":22,"original_position":22,"commit_id":"e965f53c4fc552fdb790bb02060d83189c5e12b4","original_commit_id":"e2260e2cef757dfccdc05ee20045c3bd463934b6","user":{"login":"MilanRusev","id":15890495,"avatar_url":"https://avatars1.githubusercontent.com/u/15890495?v=4","gravatar_id":"","url":"https://api.github.com/users/MilanRusev","html_url":"https://github.com/MilanRusev","followers_url":"https://api.github.com/users/MilanRusev/followers","following_url":"https://api.github.com/users/MilanRusev/following{/other_user}","gists_url":"https://api.github.com/users/MilanRusev/gists{/gist_id}","starred_url":"https://api.github.com/users/MilanRusev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MilanRusev/subscriptions","organizations_url":"https://api.github.com/users/MilanRusev/orgs","repos_url":"https://api.github.com/users/MilanRusev/repos","events_url":"https://api.github.com/users/MilanRusev/events{/privacy}","received_events_url":"https://api.github.com/users/MilanRusev/received_events","type":"User","site_admin":false},"body":"Hmm, the cap_currency_id column is defined in this migration: https://github.com/santiment/sanbase2/blob/spreadsheet-db-schema/priv/repo/migrations/20171017125741_create_icos.exs\r\n\r\nMaybe the error is connected with the `structure.sql` comment below?","created_at":"2017-11-15T15:45:14Z","updated_at":"2017-11-15T15:45:14Z","html_url":"https://github.com/santiment/sanbase2/pull/4#discussion_r151164363","pull_request_url":"https://api.github.com/repos/santiment/sanbase2/pulls/4","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/santiment/sanbase2/pulls/comments/151164363"},"html":{"href":"https://github.com/santiment/sanbase2/pull/4#discussion_r151164363"},"pull_request":{"href":"https://api.github.com/repos/santiment/sanbase2/pulls/4"}},"in_reply_to_id":151107944},"pull_request":{"url":"https://api.github.com/repos/santiment/sanbase2/pulls/4","id":147067411,"html_url":"https://github.com/santiment/sanbase2/pull/4","diff_url":"https://github.com/santiment/sanbase2/pull/4.diff","patch_url":"https://github.com/santiment/sanbase2/pull/4.patch","issue_url":"https://api.github.com/repos/santiment/sanbase2/issues/4","number":4,"state":"open","locked":false,"title":"Replicate the spreadsheet","user":{"login":"MilanRusev","id":15890495,"avatar_url":"https://avatars1.githubusercontent.com/u/15890495?v=4","gravatar_id":"","url":"https://api.github.com/users/MilanRusev","html_url":"https://github.com/MilanRusev","followers_url":"https://api.github.com/users/MilanRusev/followers","following_url":"https://api.github.com/users/MilanRusev/following{/other_user}","gists_url":"https://api.github.com/users/MilanRusev/gists{/gist_id}","starred_url":"https://api.github.com/users/MilanRusev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MilanRusev/subscriptions","organizations_url":"https://api.github.com/users/MilanRusev/orgs","repos_url":"https://api.github.com/users/MilanRusev/repos","events_url":"https://api.github.com/users/MilanRusev/events{/privacy}","received_events_url":"https://api.github.com/users/MilanRusev/received_events","type":"User","site_admin":false},"body":"**!!!NOTE: Breaks compatibility with projecttransparency db schema!!!**","created_at":"2017-10-17T15:06:48Z","updated_at":"2017-11-15T15:45:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"552e130ee5e633251649f73556fcddb1c6b6ceae","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/santiment/sanbase2/pulls/4/commits","review_comments_url":"https://api.github.com/repos/santiment/sanbase2/pulls/4/comments","review_comment_url":"https://api.github.com/repos/santiment/sanbase2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/santiment/sanbase2/issues/4/comments","statuses_url":"https://api.github.com/repos/santiment/sanbase2/statuses/e965f53c4fc552fdb790bb02060d83189c5e12b4","head":{"label":"santiment:spreadsheet-db-schema","ref":"spreadsheet-db-schema","sha":"e965f53c4fc552fdb790bb02060d83189c5e12b4","user":{"login":"santiment","id":24846876,"avatar_url":"https://avatars1.githubusercontent.com/u/24846876?v=4","gravatar_id":"","url":"https://api.github.com/users/santiment","html_url":"https://github.com/santiment","followers_url":"https://api.github.com/users/santiment/followers","following_url":"https://api.github.com/users/santiment/following{/other_user}","gists_url":"https://api.github.com/users/santiment/gists{/gist_id}","starred_url":"https://api.github.com/users/santiment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiment/subscriptions","organizations_url":"https://api.github.com/users/santiment/orgs","repos_url":"https://api.github.com/users/santiment/repos","events_url":"https://api.github.com/users/santiment/events{/privacy}","received_events_url":"https://api.github.com/users/santiment/received_events","type":"Organization","site_admin":false},"repo":{"id":106712767,"name":"sanbase2","full_name":"santiment/sanbase2","owner":{"login":"santiment","id":24846876,"avatar_url":"https://avatars1.githubusercontent.com/u/24846876?v=4","gravatar_id":"","url":"https://api.github.com/users/santiment","html_url":"https://github.com/santiment","followers_url":"https://api.github.com/users/santiment/followers","following_url":"https://api.github.com/users/santiment/following{/other_user}","gists_url":"https://api.github.com/users/santiment/gists{/gist_id}","starred_url":"https://api.github.com/users/santiment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiment/subscriptions","organizations_url":"https://api.github.com/users/santiment/orgs","repos_url":"https://api.github.com/users/santiment/repos","events_url":"https://api.github.com/users/santiment/events{/privacy}","received_events_url":"https://api.github.com/users/santiment/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/santiment/sanbase2","description":null,"fork":false,"url":"https://api.github.com/repos/santiment/sanbase2","forks_url":"https://api.github.com/repos/santiment/sanbase2/forks","keys_url":"https://api.github.com/repos/santiment/sanbase2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/santiment/sanbase2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/santiment/sanbase2/teams","hooks_url":"https://api.github.com/repos/santiment/sanbase2/hooks","issue_events_url":"https://api.github.com/repos/santiment/sanbase2/issues/events{/number}","events_url":"https://api.github.com/repos/santiment/sanbase2/events","assignees_url":"https://api.github.com/repos/santiment/sanbase2/assignees{/user}","branches_url":"https://api.github.com/repos/santiment/sanbase2/branches{/branch}","tags_url":"https://api.github.com/repos/santiment/sanbase2/tags","blobs_url":"https://api.github.com/repos/santiment/sanbase2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/santiment/sanbase2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/santiment/sanbase2/git/refs{/sha}","trees_url":"https://api.github.com/repos/santiment/sanbase2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/santiment/sanbase2/statuses/{sha}","languages_url":"https://api.github.com/repos/santiment/sanbase2/languages","stargazers_url":"https://api.github.com/repos/santiment/sanbase2/stargazers","contributors_url":"https://api.github.com/repos/santiment/sanbase2/contributors","subscribers_url":"https://api.github.com/repos/santiment/sanbase2/subscribers","subscription_url":"https://api.github.com/repos/santiment/sanbase2/subscription","commits_url":"https://api.github.com/repos/santiment/sanbase2/commits{/sha}","git_commits_url":"https://api.github.com/repos/santiment/sanbase2/git/commits{/sha}","comments_url":"https://api.github.com/repos/santiment/sanbase2/comments{/number}","issue_comment_url":"https://api.github.com/repos/santiment/sanbase2/issues/comments{/number}","contents_url":"https://api.github.com/repos/santiment/sanbase2/contents/{+path}","compare_url":"https://api.github.com/repos/santiment/sanbase2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/santiment/sanbase2/merges","archive_url":"https://api.github.com/repos/santiment/sanbase2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/santiment/sanbase2/downloads","issues_url":"https://api.github.com/repos/santiment/sanbase2/issues{/number}","pulls_url":"https://api.github.com/repos/santiment/sanbase2/pulls{/number}","milestones_url":"https://api.github.com/repos/santiment/sanbase2/milestones{/number}","notifications_url":"https://api.github.com/repos/santiment/sanbase2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/santiment/sanbase2/labels{/name}","releases_url":"https://api.github.com/repos/santiment/sanbase2/releases{/id}","deployments_url":"https://api.github.com/repos/santiment/sanbase2/deployments","created_at":"2017-10-12T15:42:11Z","updated_at":"2017-11-10T20:01:27Z","pushed_at":"2017-11-15T15:37:36Z","git_url":"git://github.com/santiment/sanbase2.git","ssh_url":"git@github.com:santiment/sanbase2.git","clone_url":"https://github.com/santiment/sanbase2.git","svn_url":"https://github.com/santiment/sanbase2","homepage":null,"size":1968,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"santiment:master","ref":"master","sha":"4ae877bfa249c0e83988292b7243b40e1b532471","user":{"login":"santiment","id":24846876,"avatar_url":"https://avatars1.githubusercontent.com/u/24846876?v=4","gravatar_id":"","url":"https://api.github.com/users/santiment","html_url":"https://github.com/santiment","followers_url":"https://api.github.com/users/santiment/followers","following_url":"https://api.github.com/users/santiment/following{/other_user}","gists_url":"https://api.github.com/users/santiment/gists{/gist_id}","starred_url":"https://api.github.com/users/santiment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiment/subscriptions","organizations_url":"https://api.github.com/users/santiment/orgs","repos_url":"https://api.github.com/users/santiment/repos","events_url":"https://api.github.com/users/santiment/events{/privacy}","received_events_url":"https://api.github.com/users/santiment/received_events","type":"Organization","site_admin":false},"repo":{"id":106712767,"name":"sanbase2","full_name":"santiment/sanbase2","owner":{"login":"santiment","id":24846876,"avatar_url":"https://avatars1.githubusercontent.com/u/24846876?v=4","gravatar_id":"","url":"https://api.github.com/users/santiment","html_url":"https://github.com/santiment","followers_url":"https://api.github.com/users/santiment/followers","following_url":"https://api.github.com/users/santiment/following{/other_user}","gists_url":"https://api.github.com/users/santiment/gists{/gist_id}","starred_url":"https://api.github.com/users/santiment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiment/subscriptions","organizations_url":"https://api.github.com/users/santiment/orgs","repos_url":"https://api.github.com/users/santiment/repos","events_url":"https://api.github.com/users/santiment/events{/privacy}","received_events_url":"https://api.github.com/users/santiment/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/santiment/sanbase2","description":null,"fork":false,"url":"https://api.github.com/repos/santiment/sanbase2","forks_url":"https://api.github.com/repos/santiment/sanbase2/forks","keys_url":"https://api.github.com/repos/santiment/sanbase2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/santiment/sanbase2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/santiment/sanbase2/teams","hooks_url":"https://api.github.com/repos/santiment/sanbase2/hooks","issue_events_url":"https://api.github.com/repos/santiment/sanbase2/issues/events{/number}","events_url":"https://api.github.com/repos/santiment/sanbase2/events","assignees_url":"https://api.github.com/repos/santiment/sanbase2/assignees{/user}","branches_url":"https://api.github.com/repos/santiment/sanbase2/branches{/branch}","tags_url":"https://api.github.com/repos/santiment/sanbase2/tags","blobs_url":"https://api.github.com/repos/santiment/sanbase2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/santiment/sanbase2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/santiment/sanbase2/git/refs{/sha}","trees_url":"https://api.github.com/repos/santiment/sanbase2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/santiment/sanbase2/statuses/{sha}","languages_url":"https://api.github.com/repos/santiment/sanbase2/languages","stargazers_url":"https://api.github.com/repos/santiment/sanbase2/stargazers","contributors_url":"https://api.github.com/repos/santiment/sanbase2/contributors","subscribers_url":"https://api.github.com/repos/santiment/sanbase2/subscribers","subscription_url":"https://api.github.com/repos/santiment/sanbase2/subscription","commits_url":"https://api.github.com/repos/santiment/sanbase2/commits{/sha}","git_commits_url":"https://api.github.com/repos/santiment/sanbase2/git/commits{/sha}","comments_url":"https://api.github.com/repos/santiment/sanbase2/comments{/number}","issue_comment_url":"https://api.github.com/repos/santiment/sanbase2/issues/comments{/number}","contents_url":"https://api.github.com/repos/santiment/sanbase2/contents/{+path}","compare_url":"https://api.github.com/repos/santiment/sanbase2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/santiment/sanbase2/merges","archive_url":"https://api.github.com/repos/santiment/sanbase2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/santiment/sanbase2/downloads","issues_url":"https://api.github.com/repos/santiment/sanbase2/issues{/number}","pulls_url":"https://api.github.com/repos/santiment/sanbase2/pulls{/number}","milestones_url":"https://api.github.com/repos/santiment/sanbase2/milestones{/number}","notifications_url":"https://api.github.com/repos/santiment/sanbase2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/santiment/sanbase2/labels{/name}","releases_url":"https://api.github.com/repos/santiment/sanbase2/releases{/id}","deployments_url":"https://api.github.com/repos/santiment/sanbase2/deployments","created_at":"2017-10-12T15:42:11Z","updated_at":"2017-11-10T20:01:27Z","pushed_at":"2017-11-15T15:37:36Z","git_url":"git://github.com/santiment/sanbase2.git","ssh_url":"git@github.com:santiment/sanbase2.git","clone_url":"https://github.com/santiment/sanbase2.git","svn_url":"https://github.com/santiment/sanbase2","homepage":null,"size":1968,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/santiment/sanbase2/pulls/4"},"html":{"href":"https://github.com/santiment/sanbase2/pull/4"},"issue":{"href":"https://api.github.com/repos/santiment/sanbase2/issues/4"},"comments":{"href":"https://api.github.com/repos/santiment/sanbase2/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/santiment/sanbase2/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/santiment/sanbase2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/santiment/sanbase2/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/santiment/sanbase2/statuses/e965f53c4fc552fdb790bb02060d83189c5e12b4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"MilanRusev"}}