I'm new to Ruby and Active Record. I'm trying to run my first migration with the command:
rake db:migrate
I keep getting this error:
NameError: uninitialized constant ActiveRecord::Migrator::Zlib.
I've tried with different projects and all migrations are getting this error.
I don't know whats up with this, took my entire day to find a solution
at the top of your environment.rb
require 'zlib'
this worked for me :)
Add the following to Rakefile
:
require 'zlib'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With