Sha256: a44b4b33a44ba4239949d3b8efc0b2a39279114a71b79f3b157ea7dcdfba4d28
Contents?: true
Size: 542 Bytes
Versions: 6
Compression:
Stored size: 542 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib') require 'test/unit' require 'rubygems' require 'active_record' require 'sqlite3' ActiveRecord::Base.establish_connection({"adapter" => "sqlite3", "database" => 'test.sqlite3'}) tables = %w( mock_records counting_records foos bars ) begin tables.each do |table| ActiveRecord::Base.connection.execute("drop table #{table}"); end rescue end tables.each do |table| ActiveRecord::Base.connection.execute("create table #{table}(id int, name string)"); end require 'after_commit'
Version data entries
6 entries across 6 versions & 2 rubygems