1. 30 8月, 2019 1 次提交
  2. 17 6月, 2019 1 次提交
  3. 14 6月, 2019 2 次提交
    • R
      Merge pull request #36404 from mrschuster/sqlite3_collation_bug · 63ace8fc
      Ryuta Kamizono 提交于
      Fix sqlite3 collation parsing when using decimal columns.
      63ace8fc
    • J
      Make ActiveRecord `ConnectionPool.connections` thread-safe. (#36473) · 83248552
      jeffdoering 提交于
      * Make ActiveRecord `ConnectionPool.connections` thread-safe.
      
      ConnectionPool documentation is clear on the need to synchronize
      access to @connections but also states that public methods do not
      require synchronization. Existing code exposed @connections
      directly via attr_reader. The fix uses synchronize() to lock
      @connections then returns a copy to the caller using Array.dup().
      
      Includes comments on the connections method that thread-safe access
      to the connections array does not imply thread-safety of accessing
      methods on the actual connections.
      
      Adds a test-case that modifies the pool using a supported method
      in one thread  while a second thread accesses pool.connections.
      The test fails without this patch.
      
      Fixes #36465.
      
      * Update activerecord/test/cases/connection_pool_test.rb
      
      [jeffdoering + Rafael Mendonça França]
      83248552
  4. 31 3月, 2019 1 次提交
  5. 28 3月, 2019 1 次提交
  6. 22 3月, 2019 1 次提交
  7. 11 3月, 2019 1 次提交
    • E
      Prep release · e69ff430
      eileencodes 提交于
      * Bump RAILS_VERSION
      * Bundle
      * rake update_versions
      * rake changelog:header
      e69ff430
  8. 28 2月, 2019 1 次提交
  9. 26 2月, 2019 1 次提交
  10. 19 2月, 2019 1 次提交
  11. 02 1月, 2019 1 次提交
  12. 06 12月, 2018 1 次提交
  13. 05 12月, 2018 1 次提交
  14. 04 12月, 2018 2 次提交
  15. 30 11月, 2018 4 次提交
  16. 29 11月, 2018 2 次提交
  17. 28 11月, 2018 2 次提交
  18. 24 11月, 2018 1 次提交
  19. 01 11月, 2018 1 次提交
  20. 31 10月, 2018 1 次提交
    • S
      `update_columns` raises if the column is unknown · 7a183bd5
      Sean Griffin 提交于
      Previosly, `update_columns` would just take whatever keys you gave it
      and tried to run the update query. Most likely this would result in an
      error from the database. However, if the column actually did exist, but
      was in `ignored_columns`, this would result in the method returning
      successfully when it should have raised, and an attribute that should
      not exist written to `@attributes`.
      7a183bd5
  21. 16 10月, 2018 1 次提交
  22. 11 9月, 2018 1 次提交
  23. 08 8月, 2018 1 次提交
  24. 31 7月, 2018 1 次提交
  25. 27 7月, 2018 1 次提交
    • Y
      PostgreSQL 10 new relkind for partitioned tables (#31336) · c8b1917e
      Yannick Schutz 提交于
      * PostgreSQL 10 new relkind for partitioned tables
      
      Starting with PostgreSQL 10, we can now have partitioned tables natively
      
      * Add comment
      
      * Remove extra space
      
      * Add test for partition table in postgreSQL10
      
      * Select 'p' for "BASE TABLE" and add a test case
      to support PostgreSQL 10 partition tables
      
      * Address RuboCop offense
      
      * Addressed incorrect `postgresql_version`
      
      Fixes #33008.
      
      [Yannick Schutz & Yasuo Honda & Ryuta Kamizono]
      c8b1917e
  26. 09 7月, 2018 1 次提交
  27. 18 6月, 2018 1 次提交
    • R
      Fix `touch` option to behave consistently with `Persistence#touch` method · 72d9c924
      Ryuta Kamizono 提交于
      `touch` option was added to `increment!` (#27660) and `update_counters`
      (#26995). But that option behaves inconsistently with
      `Persistence#touch` method.
      
      If `touch` option is passed attribute names, it won't update
      update_at/on attributes unlike `Persistence#touch` method.
      
      Due to changed from `Persistence#touch` to `increment!` with `touch`
      option, #31405 has a regression that `counter_cache` with `touch` option
      which is passed attribute names won't update update_at/on attributes.
      
      I think that the inconsistency is not intended. To get back consistency,
      ensure that `touch` option updates update_at/on attributes.
      72d9c924
  28. 04 6月, 2018 2 次提交
  29. 29 5月, 2018 1 次提交
  30. 27 5月, 2018 1 次提交
    • R
      Fix that association's after_touch is not called with counter cache · f5947d37
      Ryuta Kamizono 提交于
      Since #31405, using `#increment!` with touch option instead of `#touch`
      to touch belongs_to association if counter cache is enabled. It caused
      the regression since `#increment!` won't invoke after_touch callbacks
      even if touch option is given.
      To fix the regression, make `#increment!` invokes after_touch callbacks
      if touch option is given.
      
      Fixes #31559.
      Fixes #32408.
      f5947d37
  31. 11 5月, 2018 1 次提交
    • R
      `becomes` should clear the mutation tracker which is created in `after_initialize` · 3727d1e0
      Ryuta Kamizono 提交于
      `becomes` creates new object and copies attributes from the receiver. If
      new object has mutation tracker which is created in `after_initialize`,
      it should be cleared since it is for discarded attributes.
      
      But if the receiver doesn't have mutation tracker yet, it will not be
      cleared properly.
      
      It should be cleared regardless of whether the receiver has mutation
      tracker or not.
      
      Fixes #32867.
      3727d1e0
  32. 02 5月, 2018 1 次提交