You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use database_cleaner in development environment in order to clear out all my seed data (I can't use rake db:reset). But I get a strange stack level too deeperror:
1.9.3p327 :001 > require 'database_cleaner'
=> true
1.9.3p327 :002 > DatabaseCleaner.strategy = :truncation
=> :truncation
1.9.3p327 :003 > DatabaseCleaner.clean
SystemStackError: stack level too deep
from /home/vagrant/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/irb/workspace.rb:80
Maybe IRB bug!
The same happens in a rake task, but all works find in test environment!
I use Ubuntu Server 12.04. My version of database_cleaner is 0.9.1.
Any ideas, why this doesn't work?
cheers,
Georg
The text was updated successfully, but these errors were encountered:
I don't have any ideas on why this is happening without looking at the stack trace. Try just using DatabaseCleaner.clean_with :truncation instead though.
Hi folks,
I wanted to use database_cleaner in development environment in order to clear out all my seed data (I can't use
rake db:reset
). But I get a strangestack level too deep
error:The same happens in a rake task, but all works find in test environment!
I use Ubuntu Server 12.04. My version of database_cleaner is
0.9.1
.Any ideas, why this doesn't work?
cheers,
Georg
The text was updated successfully, but these errors were encountered: