debian-mirror-gitlab/spec/support/db_cleaner.rb

10 lines
171 B
Ruby
Raw Normal View History

2019-07-07 11:18:12 +05:30
module DbCleaner
def deletion_except_tables
[]
2014-09-02 18:07:02 +05:30
end
2019-07-07 11:18:12 +05:30
def setup_database_cleaner
DatabaseCleaner[:active_record, { connection: ActiveRecord::Base }]
2014-09-02 18:07:02 +05:30
end
end