标签: ruby-on-rails database-cleaner
Database Cleaner是否支持重置除给定表之外的所有表的方法?
答案 0 :(得分:1)
应该有效:
DatabaseCleaner.clean_with(:truncation, :except => %w[users])