Sha256: 3d910407daae45e04215bdb41fce28a354c1761cf63ad20c9cfbb4361f719911
Contents?: true
Size: 331 Bytes
Versions: 32
Compression:
Stored size: 331 Bytes
Contents
require_relative 'database_adapter' class Sqlite3Adapter < DatabaseAdapter def database_configuration { adapter: 'sqlite3', database: ':memory:' } end def reset_database! ActiveRecord::Base.connection.execute("select 'drop table ' || name || ';' from sqlite_master where type = 'table';") end end
Version data entries
32 entries across 32 versions & 3 rubygems