database_cleaner-sequel
database_cleaner-sequel copied to clipboard
All the tables are properly truncated, but consecutive test runs start auto-incremented sequences where they left off, instead of back at 1. In lib/database_cleaner/sequel/truncation.rb, changing line 19: ``` ruby db.run...
ActiveRecord has disable_referential_integrity; unfortunately Sequel doesn't. Documentation for working around this would be very useful. (Maybe doing a raw SQL statement to disable foreign keys before doing the clean?)
Take a look at #1154 issue of Sequel gem https://github.com/jeremyevans/sequel/issues/1154. My database consists of multiple schemas with some number of tables with the same name, like this: ``` Schema |...
It fails non-deterministically, line 46 in `test_helpers.rb` is: ``` ruby DatabaseCleaner.clean ``` ``` FiberError: fiber called across threads /home/bbozo/.rvm/gems/ruby-2.2.4/gems/database_cleaner-1.5.3/lib/database_cleaner/sequel/transaction.rb:32:in `resume' /home/bbozo/.rvm/gems/ruby-2.2.4/gems/database_cleaner-1.5.3/lib/database_cleaner/sequel/transaction.rb:32:in `clean' /home/bbozo/.rvm/gems/ruby-2.2.4/gems/database_cleaner-1.5.3/lib/database_cleaner/base.rb:92:in `clean' /home/bbozo/.rvm/gems/ruby-2.2.4/gems/database_cleaner-1.5.3/lib/database_cleaner/configuration.rb:79:in `block in clean' /home/bbozo/.rvm/gems/ruby-2.2.4/gems/database_cleaner-1.5.3/lib/database_cleaner/configuration.rb:79:in `each'...
I have been using DB cleaner with my only db but now I have 2 of them, and I am getting this error in testing mode as ``` RuntimeError: As...