Skip to content

Instantly share code, notes, and snippets.

@Digi-Cazter
Created August 14, 2012 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Digi-Cazter/3352312 to your computer and use it in GitHub Desktop.
Save Digi-Cazter/3352312 to your computer and use it in GitHub Desktop.
Turn off tinyint boolean emulation in Rails 3.2
#
# config/application.rb
#
require 'active_record/connection_adapters/mysql2_adapter'
module App
class Application < Rails::Application
ActiveRecord::ConnectionAdapters::Mysql2Adapter.emulate_booleans = false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment