This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem 'rails', :git => 'git://github.com/rails/rails.git', :ref => 'c1f397f82c7b3f352500832a399b5dbdc500b9c8'# change as required | |
| require 'active_record' | |
| require 'logger' | |
| # Show ActiveRecord log output | |
| ActiveRecord::Base.logger = Logger.new(STDOUT) | |
| # Print out what version we're running | |
| puts "Active Record #{ActiveRecord::VERSION::STRING}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'active_record' | |
| require 'logger' | |
| # Print out what version we're running | |
| puts "Active Record #{ActiveRecord::VERSION::STRING}" | |
| # Connect to an in-memory sqlite3 database (more on this in a moment) | |
| ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') | |
| # Create the minimal database schema necessary to reproduce the bug |