{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/42177056","id":42177056,"diff_hunk":"@@ -789,7 +789,7 @@ The `rake db:reset` task will drop the database and set it up again. This is\n functionally equivalent to `rake db:drop db:setup`.\n \n NOTE: This is not the same as running all the migrations. It will only use the\n-contents of the current `schema.rb` file. If a migration can't be rolled back,\n+contents of the current `schema.rb` or `structure.rb` file. If a migration can't be rolled back,","path":"guides/source/active_record_migrations.md","position":null,"original_position":5,"commit_id":"5cde56e173f80068845c605f70925af5326152f5","original_commit_id":"0166adcee8a84bb40f92f3a69676178ecedc4e79","user":{"login":"AnnaErshova","id":12136929,"avatar_url":"https://avatars.githubusercontent.com/u/12136929?v=3","gravatar_id":"","url":"https://api.github.com/users/AnnaErshova","html_url":"https://github.com/AnnaErshova","followers_url":"https://api.github.com/users/AnnaErshova/followers","following_url":"https://api.github.com/users/AnnaErshova/following{/other_user}","gists_url":"https://api.github.com/users/AnnaErshova/gists{/gist_id}","starred_url":"https://api.github.com/users/AnnaErshova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnnaErshova/subscriptions","organizations_url":"https://api.github.com/users/AnnaErshova/orgs","repos_url":"https://api.github.com/users/AnnaErshova/repos","events_url":"https://api.github.com/users/AnnaErshova/events{/privacy}","received_events_url":"https://api.github.com/users/AnnaErshova/received_events","type":"User","site_admin":false},"body":"Done @senny; committed the change to the existing branch, hope that was proper workflow, let me know if not. ","created_at":"2015-10-15T20:39:03Z","updated_at":"2015-10-15T20:39:03Z","html_url":"https://github.com/rails/rails/pull/21966#discussion_r42177056","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/21966","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/42177056"},"html":{"href":"https://github.com/rails/rails/pull/21966#discussion_r42177056"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/21966"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/21966","id":47789860,"html_url":"https://github.com/rails/rails/pull/21966","diff_url":"https://github.com/rails/rails/pull/21966.diff","patch_url":"https://github.com/rails/rails/pull/21966.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/21966","number":21966,"state":"open","locked":false,"title":"Clarifies db can be set up from structure.sql as well as from schema.rb","user":{"login":"AnnaErshova","id":12136929,"avatar_url":"https://avatars.githubusercontent.com/u/12136929?v=3","gravatar_id":"","url":"https://api.github.com/users/AnnaErshova","html_url":"https://github.com/AnnaErshova","followers_url":"https://api.github.com/users/AnnaErshova/followers","following_url":"https://api.github.com/users/AnnaErshova/following{/other_user}","gists_url":"https://api.github.com/users/AnnaErshova/gists{/gist_id}","starred_url":"https://api.github.com/users/AnnaErshova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnnaErshova/subscriptions","organizations_url":"https://api.github.com/users/AnnaErshova/orgs","repos_url":"https://api.github.com/users/AnnaErshova/repos","events_url":"https://api.github.com/users/AnnaErshova/events{/privacy}","received_events_url":"https://api.github.com/users/AnnaErshova/received_events","type":"User","site_admin":false},"body":"I added that 'structure.sql' file can be used when 'db:reset' is run.\r\n\r\n'db:reset' task states 'db:reset' loads database from 'db/schema.rb'\r\nor 'db/structure.sql' depending on the configuration (although\r\n'db/schema.rb' is the default), hence the change.","created_at":"2015-10-15T14:00:45Z","updated_at":"2015-10-15T20:39:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35735979b881750d68693830a91336f98ba74eaf","assignee":{"login":"senny","id":5402,"avatar_url":"https://avatars.githubusercontent.com/u/5402?v=3","gravatar_id":"","url":"https://api.github.com/users/senny","html_url":"https://github.com/senny","followers_url":"https://api.github.com/users/senny/followers","following_url":"https://api.github.com/users/senny/following{/other_user}","gists_url":"https://api.github.com/users/senny/gists{/gist_id}","starred_url":"https://api.github.com/users/senny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senny/subscriptions","organizations_url":"https://api.github.com/users/senny/orgs","repos_url":"https://api.github.com/users/senny/repos","events_url":"https://api.github.com/users/senny/events{/privacy}","received_events_url":"https://api.github.com/users/senny/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/21966/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/21966/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/21966/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/5cde56e173f80068845c605f70925af5326152f5","head":{"label":"AnnaErshova:dbreset-edit","ref":"dbreset-edit","sha":"5cde56e173f80068845c605f70925af5326152f5","user":{"login":"AnnaErshova","id":12136929,"avatar_url":"https://avatars.githubusercontent.com/u/12136929?v=3","gravatar_id":"","url":"https://api.github.com/users/AnnaErshova","html_url":"https://github.com/AnnaErshova","followers_url":"https://api.github.com/users/AnnaErshova/followers","following_url":"https://api.github.com/users/AnnaErshova/following{/other_user}","gists_url":"https://api.github.com/users/AnnaErshova/gists{/gist_id}","starred_url":"https://api.github.com/users/AnnaErshova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnnaErshova/subscriptions","organizations_url":"https://api.github.com/users/AnnaErshova/orgs","repos_url":"https://api.github.com/users/AnnaErshova/repos","events_url":"https://api.github.com/users/AnnaErshova/events{/privacy}","received_events_url":"https://api.github.com/users/AnnaErshova/received_events","type":"User","site_admin":false},"repo":{"id":44320902,"name":"rails","full_name":"AnnaErshova/rails","owner":{"login":"AnnaErshova","id":12136929,"avatar_url":"https://avatars.githubusercontent.com/u/12136929?v=3","gravatar_id":"","url":"https://api.github.com/users/AnnaErshova","html_url":"https://github.com/AnnaErshova","followers_url":"https://api.github.com/users/AnnaErshova/followers","following_url":"https://api.github.com/users/AnnaErshova/following{/other_user}","gists_url":"https://api.github.com/users/AnnaErshova/gists{/gist_id}","starred_url":"https://api.github.com/users/AnnaErshova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnnaErshova/subscriptions","organizations_url":"https://api.github.com/users/AnnaErshova/orgs","repos_url":"https://api.github.com/users/AnnaErshova/repos","events_url":"https://api.github.com/users/AnnaErshova/events{/privacy}","received_events_url":"https://api.github.com/users/AnnaErshova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AnnaErshova/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/AnnaErshova/rails","forks_url":"https://api.github.com/repos/AnnaErshova/rails/forks","keys_url":"https://api.github.com/repos/AnnaErshova/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AnnaErshova/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AnnaErshova/rails/teams","hooks_url":"https://api.github.com/repos/AnnaErshova/rails/hooks","issue_events_url":"https://api.github.com/repos/AnnaErshova/rails/issues/events{/number}","events_url":"https://api.github.com/repos/AnnaErshova/rails/events","assignees_url":"https://api.github.com/repos/AnnaErshova/rails/assignees{/user}","branches_url":"https://api.github.com/repos/AnnaErshova/rails/branches{/branch}","tags_url":"https://api.github.com/repos/AnnaErshova/rails/tags","blobs_url":"https://api.github.com/repos/AnnaErshova/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AnnaErshova/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AnnaErshova/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/AnnaErshova/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AnnaErshova/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/AnnaErshova/rails/languages","stargazers_url":"https://api.github.com/repos/AnnaErshova/rails/stargazers","contributors_url":"https://api.github.com/repos/AnnaErshova/rails/contributors","subscribers_url":"https://api.github.com/repos/AnnaErshova/rails/subscribers","subscription_url":"https://api.github.com/repos/AnnaErshova/rails/subscription","commits_url":"https://api.github.com/repos/AnnaErshova/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/AnnaErshova/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/AnnaErshova/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/AnnaErshova/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/AnnaErshova/rails/contents/{+path}","compare_url":"https://api.github.com/repos/AnnaErshova/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AnnaErshova/rails/merges","archive_url":"https://api.github.com/repos/AnnaErshova/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AnnaErshova/rails/downloads","issues_url":"https://api.github.com/repos/AnnaErshova/rails/issues{/number}","pulls_url":"https://api.github.com/repos/AnnaErshova/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/AnnaErshova/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/AnnaErshova/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AnnaErshova/rails/labels{/name}","releases_url":"https://api.github.com/repos/AnnaErshova/rails/releases{/id}","created_at":"2015-10-15T13:53:54Z","updated_at":"2015-10-15T13:54:35Z","pushed_at":"2015-10-15T20:37:12Z","git_url":"git://github.com/AnnaErshova/rails.git","ssh_url":"git@github.com:AnnaErshova/rails.git","clone_url":"https://github.com/AnnaErshova/rails.git","svn_url":"https://github.com/AnnaErshova/rails","homepage":"http://rubyonrails.org","size":465221,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"b6cf69ebcbf7372c61d38aa33baa7d0f4224679b","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2015-10-15T20:26:09Z","pushed_at":"2015-10-15T20:37:14Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":465221,"stargazers_count":28045,"watchers_count":28045,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11306,"mirror_url":null,"open_issues_count":879,"forks":11306,"open_issues":879,"watchers":28045,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/21966"},"html":{"href":"https://github.com/rails/rails/pull/21966"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/21966"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/21966/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/21966/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/21966/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/5cde56e173f80068845c605f70925af5326152f5"}}}}