Sha256: 704c09b95fdbd2b9705360b77cac541417072c667eae357f05f7510951bef58c
Contents?: true
Size: 357 Bytes
Versions: 12
Compression:
Stored size: 357 Bytes
Contents
ActiveRecord::Migration.verbose = false ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:' module DatabaseCleaner def self.included config config.after :each, :active_record do ActiveRecord::Base.connection.tables.each do |table| ActiveRecord::Base.connection.drop_table(table) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems