Sha256: 75b7d0aa4c88be424cf395ea96900e44f291249afc1e65a6eb00da84b663f330
Contents?: true
Size: 349 Bytes
Versions: 15
Compression:
Stored size: 349 Bytes
Contents
require 'jdbc/sqlite3' if jruby? config = { :adapter => jruby? ? 'jdbcsqlite3' : 'sqlite3', :dbfile => 'test.sqlite3.db' # :url => 'jdbc:sqlite:test.sqlite3.db', # :driver => 'org.sqlite.JDBC' } ActiveRecord::Base.establish_connection(config) at_exit { # Clean up sqlite3 db when done Dir['test.sqlite3*'].each {|f| File.delete(f)} }
Version data entries
15 entries across 15 versions & 4 rubygems