{"action":"created","issue":{"url":"https://api.github.com/repos/crowbar/crowbar-core/issues/141","labels_url":"https://api.github.com/repos/crowbar/crowbar-core/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/crowbar/crowbar-core/issues/141/comments","events_url":"https://api.github.com/repos/crowbar/crowbar-core/issues/141/events","html_url":"https://github.com/crowbar/crowbar-core/pull/141","id":118574083,"number":141,"title":"Added undocumented db:cleanup rake task","user":{"login":"tboerger","id":156964,"avatar_url":"https://avatars.githubusercontent.com/u/156964?v=3","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-24T10:15:07Z","updated_at":"2015-11-24T10:17:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/crowbar/crowbar-core/pulls/141","html_url":"https://github.com/crowbar/crowbar-core/pull/141","diff_url":"https://github.com/crowbar/crowbar-core/pull/141.diff","patch_url":"https://github.com/crowbar/crowbar-core/pull/141.patch"},"body":"To reset the database to a proper state where we can keep the session\r\ninformation working I have written a custom rake task within the db\r\nnamespace. It is in purpose undocumented (no task description) to\r\nprevent a manual execution."},"comment":{"url":"https://api.github.com/repos/crowbar/crowbar-core/issues/comments/159219056","html_url":"https://github.com/crowbar/crowbar-core/pull/141#issuecomment-159219056","issue_url":"https://api.github.com/repos/crowbar/crowbar-core/issues/141","id":159219056,"user":{"login":"tboerger","id":156964,"avatar_url":"https://avatars.githubusercontent.com/u/156964?v=3","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T10:17:58Z","updated_at":"2015-11-24T10:17:58Z","body":"```\r\n# bin/rake db:cleanup\r\nWARNING: Nokogiri was built against LibXML version 2.9.2, but has dynamically loaded 2.9.1\r\n== 20150806114015 CreateProposalQueues: reverting =============================\r\n-- drop_table(:proposal_queues)\r\n   -> 0.0159s\r\n== 20150806114015 CreateProposalQueues: reverted (0.0179s) ====================\r\n\r\n== 20150312081459 CreateProposals: reverting ==================================\r\n-- remove_index(:proposals, {:column=>[:barclamp, :name]})\r\n   -> 0.0152s\r\n-- drop_table(:proposals)\r\n   -> 0.0159s\r\n== 20150312081459 CreateProposals: reverted (0.0313s) =========================\r\n\r\n== 20150312081459 CreateProposals: migrating ==================================\r\n-- create_table(:proposals)\r\n   -> 0.0158s\r\n-- add_index(:proposals, [:barclamp, :name], {:unique=>true})\r\n   -> 0.0159s\r\n== 20150312081459 CreateProposals: migrated (0.0318s) =========================\r\n\r\n== 20150806114015 CreateProposalQueues: migrating =============================\r\n-- create_table(:proposal_queues)\r\n   -> 0.0156s\r\n== 20150806114015 CreateProposalQueues: migrated (0.0158s) ====================\r\n```"}}