Skip to content

Instantly share code, notes, and snippets.

@kazu69
Last active November 26, 2015 07:49
Show Gist options
  • Save kazu69/da4db6ba0b96673840a5 to your computer and use it in GitHub Desktop.
Save kazu69/da4db6ba0b96673840a5 to your computer and use it in GitHub Desktop.
# config/application.rb
require 'active_record/connection_adapters/mysql2_adapter'
ActiveRecord::ConnectionAdapters::Mysql2Adapter.emulate_booleans = false
class StoreListing < ActiveRecord::Base
attribute :price_in_cents, Type::Integer.new
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment