1. 03 3月, 2019 2 次提交
    • Y
      Oracle database can run `delete` statement with `order by` and`fetch first n rows only` · 417c2519
      Yasuo Honda 提交于
      Since https://github.com/rails/arel/pull/337 Oracle adapter uses better
      top N query using `fetch first n rows only`, which can remove this
      unless condition.
      
      * This commit passes with Oracle database
      ```ruby
      $ ARCONN=oracle bin/test test/cases/relation/delete_all_test.rb -n test_delete_all_with_order_and_limit_deletes_subset_only
      Using oracle
      Run options: -n test_delete_all_with_order_and_limit_deletes_subset_only --seed 1081
      
      .
      
      Finished in 8.068626s, 0.1239 runs/s, 0.6197 assertions/s.
      1 runs, 5 assertions, 0 failures, 0 errors, 0 skips
      $
      ```
      
      * SQL statement includes `ORDER BY` and `FETCH FIRST n ROWS ONLY`
      
      ```sql
        Post Destroy (12.5ms)  DELETE FROM "POSTS" WHERE "POSTS"."ID" IN (SELECT "POSTS"."ID" FROM "POSTS" WHERE "POSTS"."AUTHOR_ID" = :a1 ORDER BY "POSTS"."ID" ASC FETCH FIRST :a2 ROWS ONLY)  [["author_id", 1], ["LIMIT", 1]]
      ```
      417c2519
    • D
      activesupport: Simplify class_attribute implementation (#35454) · dfa439ee
      Dylan Thacker-Smith 提交于
      * activesupport(class_attribute): Use redefine_singleton_method
      
      * activesupport(class_attribute): Use keyword arguments
      
      * activesupport(class_attribute): Avoid unnecessary redefinition for default
      dfa439ee
  2. 02 3月, 2019 4 次提交
  3. 01 3月, 2019 11 次提交
  4. 28 2月, 2019 6 次提交
  5. 27 2月, 2019 17 次提交