Rails edge build failing in database_cleaner-active_record
Closed this issue · 0 comments
jturkel commented
The Rails edge builds are failing with the following error:
An error occurred in a `before(:suite)` hook.
Failure/Error: DatabaseCleaner.clean_with(:truncation)
NoMethodError:
undefined method `table_name' for ActiveRecord::SchemaMigration:Class
::ActiveRecord::SchemaMigration.table_name
^^^^^^^^^^^
# ./gemfiles/vendor/bundle/ruby/3.1.0/gems/database_cleaner-active_record-2.0.1/lib/database_cleaner/active_record/base.rb:18:in `migration_table_name'
# ./gemfiles/vendor/bundle/ruby/3.1.0/gems/database_cleaner-active_record-2.0.1/lib/database_cleaner/active_record/truncation.rb:47:in `migration_storage_names'
# ./gemfiles/vendor/bundle/ruby/3.1.0/gems/database_cleaner-active_record-2.0.1/lib/database_cleaner/active_record/truncation.rb:41:in `tables_to_truncate'
# ./gemfiles/vendor/bundle/ruby/3.1.0/gems/database_cleaner-active_record-2.0.1/lib/database_cleaner/active_record/truncation.rb:25:in `block in clean'
# ./gemfiles/vendor/bundle/ruby/3.1.0/bundler/gems/rails-971fa17502de/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb:236:in `disable_referential_integrity'
# ./gemfiles/vendor/bundle/ruby/3.1.0/gems/database_cleaner-active_record-2.0.1/lib/database_cleaner/active_record/truncation.rb:21:in `clean'
# ./gemfiles/vendor/bundle/ruby/3.1.0/gems/database_cleaner-core-2.0.1/lib/database_cleaner/cleaner.rb:65:in `clean_with'
# ./gemfiles/vendor/bundle/ruby/3.1.0/gems/database_cleaner-core-2.0.1/lib/database_cleaner/cleaners.rb:40:in `block in clean_with'
# ./gemfiles/vendor/bundle/ruby/3.1.0/gems/database_cleaner-core-2.0.1/lib/database_cleaner/cleaners.rb:40:in `each'
# ./gemfiles/vendor/bundle/ruby/3.1.0/gems/database_cleaner-core-2.0.1/lib/database_cleaner/cleaners.rb:40:in `clean_with'
# ./spec/spec_helper.rb:27:in `block (2 levels) in <top (required)>'
This is due to DatabaseCleaner/database_cleaner-active_record#83