Home db:migrate not working after cloning the source code
Reply: 1

db:migrate not working after cloning the source code

Omiyera Damilola
1#
Omiyera Damilola Published in 2018-01-01 23:52:11Z

i cloned the sample app from https://bitbucket.org/railstutorial/sample_app_4th_ed and followed the instruction there, but rails db:migrate is aborting

C:\Sites\sample_app>rails db:migrate
    rails aborted!
    LoadError: cannot load such file -- bcrypt_ext
    C:/Sites/sample_app/config/application.rb:7:in `<top (required)>'
C:/Sites/sample_app/Rakefile:4:in `require_relative'
C:/Sites/sample_app/Rakefile:4:in `<top (required)>'
bin/rails:9:in `require'
bin/rails:9:in `<main>'

Caused by:
LoadError: cannot load such file -- 2.3/bcrypt_ext
C:/Sites/sample_app/config/application.rb:7:in `<top (required)>'
C:/Sites/sample_app/Rakefile:4:in `require_relative'
C:/Sites/sample_app/Rakefile:4:in `<top (required)>'
bin/rails:9:in `require'
bin/rails:9:in `<main>'
(See full trace by running task with --trace)
mu is too short
2#
mu is too short Reply to 2018-01-02 01:21:02Z

Try to uninstall bcrypt completely with:

gem uninstall bcrypt-ruby
gem uninstall bcrypt

Be sure all versions are uninstalled, then run

gem install bcrypt --platform=ruby

Try to run bundle install. After this worked you could try to run rake db:migrate again.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.301342 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO