method
strict_strings_by_default
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::SQLite3Adapter
strict_strings_by_defaultpublic
Configure the SQLite3Adapter to be used in a “strict strings” mode. When enabled, this will disallow double-quoted string literals in SQL statements which may prevent some typographical errors like creating an index for a non-existent column. The default is false.
If you wish to enable this mode you can add the following line to your application.rb file:
config.active_record.sqlite3_adapter_strict_strings_by_default = true
This can also be configured on individual databases by setting the strict: option.