zombocom / derailed_benchmarks

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

perf:objects won't boot #213

Open 9mm opened 2 years ago

9mm commented 2 years ago

I get this error when running PATH_TO_HIT=/api/webhooks RAILS_ENV=development bundle exec derailed exec perf:objects

undefined method `migrate' for ActiveRecord::Migrator:Class (NoMethodError)
ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_paths, nil)
                              ^^^^^^^^

Without adding RAILS_ENV i also get a huge amount of errors related to all different gems Im not even including in application.rb, like complaining about storage.yml etc. RAILS_ENV=production rails s works fine, so I'm not sure what its doing when booting

schneems commented 2 years ago

If this is a bug with derailed I need a https://codetriage.com/example_app

leoplct commented 2 years ago

I got the same error. It looks ActiveRecord::Migrator.migrateis deprecated.