{"action":"created","issue":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/1329","labels_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1329/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1329/comments","events_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1329/events","html_url":"https://github.com/rspec/rspec-rails/issues/1329","id":59518935,"number":1329,"title":"Test Database Schema never loads","user":{"login":"milesmatthias","id":600638,"avatar_url":"https://avatars.githubusercontent.com/u/600638?v=3","gravatar_id":"","url":"https://api.github.com/users/milesmatthias","html_url":"https://github.com/milesmatthias","followers_url":"https://api.github.com/users/milesmatthias/followers","following_url":"https://api.github.com/users/milesmatthias/following{/other_user}","gists_url":"https://api.github.com/users/milesmatthias/gists{/gist_id}","starred_url":"https://api.github.com/users/milesmatthias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milesmatthias/subscriptions","organizations_url":"https://api.github.com/users/milesmatthias/orgs","repos_url":"https://api.github.com/users/milesmatthias/repos","events_url":"https://api.github.com/users/milesmatthias/events{/privacy}","received_events_url":"https://api.github.com/users/milesmatthias/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-02T18:09:40Z","updated_at":"2015-03-02T21:36:37Z","closed_at":null,"body":"Hey everyone, congrats on a great project. I'm having an issue and am at a loss for what to try next.\r\n\r\nWe're using rspec-rails 3.0.0.beta2 with rails 4.1.8. Each time I run rspec (through `bundle exec rspec`, `rake spec`, or just `rspec`), it comes back with an ActiveRecord query error that a table from my schema doesn't exist in my test database:\r\n\r\n> /Users/miles/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:303:in `query': Mysql2::Error: Table 'equity_eats_test.projects' doesn't exist: SELECT `projects`.* FROM `projects`  WHERE `projects`.`deleted_at` IS NULL (ActiveRecord::StatementInvalid)\r\n\r\nI saw the [upgrade guide about loading the test db](https://www.relishapp.com/rspec/rspec-rails/docs/upgrade#pending-migration-checks), so I verified that we have the following in our `spec_helper.rb`:\r\n\r\n```ruby\r\nActiveRecord::Migration.maintain_test_schema! if defined?(ActiveRecord::Migration)\r\n```\r\n\r\nbut the schema is never loaded:\r\n\r\n```mysql\r\nmysql> use equity_eats_test;\r\nDatabase changed\r\nmysql> show tables;\r\nEmpty set (0.00 sec)\r\n```\r\n\r\nso then I try to manually update the test database by doing one of: `RAILS_ENV=test rake db:migrate` or `RAILS_ENV=test rake db:reset`, but I get the same ActiveRecord query error from above -- no such table.\r\n\r\nI've also tried upgrading `rspec-rails` to the latest version with no avail.\r\n\r\nWhat should I try next?\r\n"},"comment":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/comments/76830668","html_url":"https://github.com/rspec/rspec-rails/issues/1329#issuecomment-76830668","issue_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1329","id":76830668,"user":{"login":"JonRowe","id":162976,"avatar_url":"https://avatars.githubusercontent.com/u/162976?v=3","gravatar_id":"","url":"https://api.github.com/users/JonRowe","html_url":"https://github.com/JonRowe","followers_url":"https://api.github.com/users/JonRowe/followers","following_url":"https://api.github.com/users/JonRowe/following{/other_user}","gists_url":"https://api.github.com/users/JonRowe/gists{/gist_id}","starred_url":"https://api.github.com/users/JonRowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonRowe/subscriptions","organizations_url":"https://api.github.com/users/JonRowe/orgs","repos_url":"https://api.github.com/users/JonRowe/repos","events_url":"https://api.github.com/users/JonRowe/events{/privacy}","received_events_url":"https://api.github.com/users/JonRowe/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T21:36:37Z","updated_at":"2015-03-02T21:36:37Z","body":"Can you gist your `config/environments/test.rb` and `config/database.yml` (with any relevant sensitive information scrubbed of course)"}}