method

strict_strings_by_default

strict_strings_by_default
public

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.