json_web_token icon indicating copy to clipboard operation
json_web_token copied to clipboard

Unable to run rake db:migrate when using JST

Open ACPK opened this issue 8 years ago • 1 comments

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

ACPK avatar May 08 '17 19:05 ACPK

turn off the alias to JWT by setting this ENV variable:

JWT = JsonWebToken unless ENV['RUBY_GEM_JSON_WEB_TOKEN_SKIP_ALIAS']

garyf avatar May 08 '17 21:05 garyf