Skip to content

Instantly share code, notes, and snippets.

# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.0.2'
require 'active_record'
require 'minitest/autorun'
require 'logger'
# This connection will do for database-independent bug reports.
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
ActiveRecord::Base.logger = Logger.new(STDOUT)
200 180
-+---------+---------+----->
|v1 v2 |v3 v4 |v5
-+----+----+----+----+----->
300 -200 270 -180