json_web_token
json_web_token copied to clipboard
Unable to run rake db:migrate when using JST
I get the following error message:
/Users/me/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/json_web_token-0.2.2/lib/json_web_token.rb:35: warning: already initialized constant JWT
/Users/me/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/jwt-1.5.6/lib/jwt/json.rb:4:
warning: previous definition of JWT was here
fatal: Needed a single revision
The app's source code can be found here: https://github.com/catarse/catarse
turn off the alias to JWT by setting this ENV variable:
JWT = JsonWebToken unless ENV['RUBY_GEM_JSON_WEB_TOKEN_SKIP_ALIAS']