lynndylanhurley / lynndylanhurley/devise_token_auth
rake db:migrate complains of multiple databases and an old OmniAuth version
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 3.6k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to run the tests on a clean pull of HEAD as of 1/17/2021 (c922580), but the bundle install takes hours and once it completes, it complains of a multiple database configuration and an old OmniAuth version (but it's using 2.0.1). If this is not an issue, please tell me what I'm doing wrong.
* **Version**: Head (as of 1/17)
* **Request and response headers**: n/a
* **Stacktrace**:
$ bundle exec rake db:migrate
Rails couldn't infer whether you are using multiple databases from your database.yml and can't generate the tasks for the non-primary databases. If you'd like to use this feature, please simplify your ERB.
rake aborted!
You are using an old OmniAuth version, please ensure you have 1.0.0.pr2 version or later installed.
/home/micah/dev/devise_token_auth/test/dummy/app/active_record/unregisterable_user.rb:5:in `'
/home/micah/dev/devise_token_auth/test/dummy/app/active_record/unregisterable_user.rb:4:in `'
/home/micah/dev/devise_token_auth/lib/devise_token_auth/rails/routes.rb:35:in `mount_devise_token_auth_for'
/home/micah/dev/devise_token_auth/test/dummy/config/routes.rb:17:in `block in '
/home/micah/dev/devise_token_auth/test/dummy/config/routes.rb:3:in `'
/home/micah/dev/devise_token_auth/test/dummy/config/environment.rb:7:in `'
/home/micah/.asdf/installs/ruby/2.7.2/bin/bundle:23:in `load'
/home/micah/.asdf/installs/ruby/2.7.2/bin/bundle:23:in `'
Tasks: TOP => db:migrate => app:db:migrate => app:db:load_config => app:environment
(See full trace by running task with --trace)
* **Environmental Info**: asdf version manager with ruby 2.7.2 and omniauth 2.0.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing `bundle exec rake db:migrate` with Ruby 2.7.2 and OmniAuth 2.0.1, then inspect the database.yml configuration and the stack-trace paths `test/dummy/app/active_record/unregisterable_user.rb` and `test/dummy/config/routes.rb`. Done means determining whether the errors come from the project or the reported environment and documenting the required setup or a reproducible fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby
- Domain
- authentication, backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100