{"action":"created","issue":{"url":"https://api.github.com/repos/bmizerany/sinatra-activerecord/issues/14","labels_url":"https://api.github.com/repos/bmizerany/sinatra-activerecord/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/bmizerany/sinatra-activerecord/issues/14/comments","events_url":"https://api.github.com/repos/bmizerany/sinatra-activerecord/issues/14/events","html_url":"https://github.com/bmizerany/sinatra-activerecord/issues/14","id":54780216,"number":14,"title":"ActiveRecord::ConnectionNotEstablished: No connection pool for ActiveRecord::Base on rake db:seed","user":{"login":"SauloSilva","id":1027336,"avatar_url":"https://avatars.githubusercontent.com/u/1027336?v=3","gravatar_id":"","url":"https://api.github.com/users/SauloSilva","html_url":"https://github.com/SauloSilva","followers_url":"https://api.github.com/users/SauloSilva/followers","following_url":"https://api.github.com/users/SauloSilva/following{/other_user}","gists_url":"https://api.github.com/users/SauloSilva/gists{/gist_id}","starred_url":"https://api.github.com/users/SauloSilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SauloSilva/subscriptions","organizations_url":"https://api.github.com/users/SauloSilva/orgs","repos_url":"https://api.github.com/users/SauloSilva/repos","events_url":"https://api.github.com/users/SauloSilva/events{/privacy}","received_events_url":"https://api.github.com/users/SauloSilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-19T15:55:25Z","updated_at":"2015-01-19T16:53:37Z","closed_at":null,"body":"I'm using this gem in the latest version , configured like this in the documentation. `db:migrate`, `db:create`, `db:purge`, `db:reset`, `db:drop` all worked less `db:seed`.\r\n\r\nWhen running a task , it triggers a connection error with the bd:\r\n\r\n````\r\nActiveRecord :: ConnectionNotEstablished : Em pool de conexão é ActiveRecord :: Base\r\n````\r\n\r\nI checked and found a solution to this problem, which was load_config carrier to the task of seeds this:\r\n\r\n````ruby\r\ntask seed: : load_config\r\n````\r\n\r\nI am available to help with this problem."},"comment":{"url":"https://api.github.com/repos/bmizerany/sinatra-activerecord/issues/comments/70525508","html_url":"https://github.com/bmizerany/sinatra-activerecord/issues/14#issuecomment-70525508","issue_url":"https://api.github.com/repos/bmizerany/sinatra-activerecord/issues/14","id":70525508,"user":{"login":"janko-m","id":795488,"avatar_url":"https://avatars.githubusercontent.com/u/795488?v=3","gravatar_id":"","url":"https://api.github.com/users/janko-m","html_url":"https://github.com/janko-m","followers_url":"https://api.github.com/users/janko-m/followers","following_url":"https://api.github.com/users/janko-m/following{/other_user}","gists_url":"https://api.github.com/users/janko-m/gists{/gist_id}","starred_url":"https://api.github.com/users/janko-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janko-m/subscriptions","organizations_url":"https://api.github.com/users/janko-m/orgs","repos_url":"https://api.github.com/users/janko-m/repos","events_url":"https://api.github.com/users/janko-m/events{/privacy}","received_events_url":"https://api.github.com/users/janko-m/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T16:53:37Z","updated_at":"2015-01-19T16:53:37Z","body":"What version of ActiveRecord are you using? Did you remember to run prepend the Rake comand with `bundle exec`?"}}