aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
diff options
context:
space:
mode:
authorYoshiyuki Hirano <yhirano@me.com>2017-08-26 17:22:30 +0900
committerYoshiyuki Hirano <yhirano@me.com>2017-08-27 14:01:29 +0900
commita2f2d2617b144b616700af4fe0f4c184d15cee66 (patch)
treeff081d373ec1fd76feb9022e180b7bd684b829f4 /activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
parent46c2e93051ab33157c584292a2743f9482e99582 (diff)
downloadrails-a2f2d2617b144b616700af4fe0f4c184d15cee66.tar.gz
rails-a2f2d2617b144b616700af4fe0f4c184d15cee66.tar.bz2
rails-a2f2d2617b144b616700af4fe0f4c184d15cee66.zip
Use tt in doc for ActiveRecord [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
index d6f357bcc3..6fdd666486 100644
--- a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
@@ -76,7 +76,7 @@ module ActiveRecord
##
# :singleton-method:
# Indicates whether boolean values are stored in sqlite3 databases as 1
- # and 0 or 't' and 'f'. Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
+ # and 0 or 't' and 'f'. Leaving <tt>ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer</tt>
# set to false is deprecated. SQLite databases have used 't' and 'f' to
# serialize boolean values and must have old data converted to 1 and 0
# (its native boolean serialization) before setting this flag to true.
@@ -85,7 +85,7 @@ module ActiveRecord
# ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
# ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
# for all models and all boolean columns, after which the flag must be set
- # to true by adding the following to your application.rb file:
+ # to true by adding the following to your <tt>application.rb</tt> file:
#
# Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
class_attribute :represent_boolean_as_integer, default: false