zombocom / derailed_benchmarks

Go faster, off the Rails - Benchmarks for your whole Rails app
2.94k stars 138 forks source link

support rails 7 for `bundle exec derailed exec mem` #205

Closed dorianmariecom closed 2 years ago

dorianmariecom commented 2 years ago

was getting:

/Users/dorianmariefr/.rvm/gems/ruby-3.0.3/gems/derailed_benchmarks-2.1.1/lib/derailed_benchmarks/load_tasks.rb:48:in block (2 levels) in <top (required)>': undefined methodmigrate' for ActiveRecord::Migrator:Class (NoMethodError)

evanlouden commented 2 years ago

I was receiving the same error and this fixed it for me on a Rails 7 app.

Maybe a suggestion? Rails.version.chars.first.to_i > 5

dorianmariecom commented 2 years ago

thanks, I used Rails.version >= "6.0"

julianrubisch commented 2 years ago

Can confirm that this is needed to work with Rails 7

dorianmariecom commented 2 years ago

Thanks for the merge @schneems and for the invite to the organization