1. 12 7月, 2017 1 次提交
    • L
      Change sqlite3 boolean serialization to use 1 and 0 · 52e050ed
      Lisa Ugray 提交于
      Abstract boolean serialization has been using 't' and 'f', with MySQL
      overriding that to use 1 and 0.
      
      This has the advantage that SQLite natively recognizes 1 and 0 as true
      and false, but does not natively recognize 't' and 'f'.
      
      This change in serialization requires a migration of stored boolean data
      for SQLite databases, so it's implemented behind a configuration flag
      whose default false value is deprecated. The flag itself can be
      deprecated in a future version of Rails.  While loaded models will give
      the correct result for boolean columns without migrating old data,
      where() clauses will interact incorrectly with old data.
      
      While working in this area, also change the abstract adapter to use
      `"TRUE"` and `"FALSE"` as quoted values and `true` and `false` for
      unquoted.  These are supported by PostreSQL, and MySQL remains
      overriden.
      52e050ed
  2. 11 7月, 2017 9 次提交
  3. 10 7月, 2017 8 次提交
  4. 09 7月, 2017 19 次提交
  5. 08 7月, 2017 3 次提交
    • E
      Don't call register on custom drivers · 91d22b78
      eileencodes 提交于
      It's possible for developers toadd a custom driver and then call it
      using `driven_by`. Because we were only skipping `register` for
      `:rack_test` that meant any custom driver would attempt to be registered
      as well.
      
      The three listed here are special because Rails registers them with
      special options. If you're registering your own custom driver then you
      don't want to separately register that driver.
      
      Fixes #29688
      91d22b78
    • E
      Merge pull request #29680 from koic/update_default_app_files_in_app_generator_test · a136c291
      Eileen M. Uchitelle 提交于
      Update default app files in app_generator_test
      a136c291
    • S
      Clarify i18n guide for how pluralization rules work by default · 6a8d618b
      Sage Ross 提交于
      The guide misleadingly indicates that the I18n gem will apply the CLDR pluralization rules for each language. This is not the case; only the English algorithm, with support for :zero, :one, and :other, is available by default. Locale-specific pluralization rules require additional configuration and must be supplied by the application (or by another gem).
      6a8d618b