Created
March 6, 2014 15:06
-
-
Save ajoman/9391708 to your computer and use it in GitHub Desktop.
Compatibility in Rails 4 for SQLite3 boolean columns. Add it to config/initializers folder.
This file contains 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
# config/initializers/sqlite3_adapter_patch.rb | |
module ActiveRecord | |
module ConnectionAdapters | |
class SQLite3Adapter < AbstractAdapter | |
QUOTED_TRUE, QUOTED_FALSE = "'t'", "'f'" | |
def quoted_true | |
QUOTED_TRUE | |
end | |
def quoted_false | |
QUOTED_FALSE | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment