1. 10 6月, 2017 1 次提交
  2. 06 6月, 2017 1 次提交
  3. 05 6月, 2017 1 次提交
  4. 03 6月, 2017 2 次提交
  5. 01 6月, 2017 2 次提交
  6. 31 5月, 2017 3 次提交
  7. 30 5月, 2017 6 次提交
  8. 29 5月, 2017 2 次提交
    • Y
      `rename_table` renames primary key index name · de387ea4
      Yaw Boakye 提交于
      Formerly, `rename_table` only renamed primary key index name if the
      column's data type was sequential (serial, etc in PostgreSQL). The
      problem with that is tables whose primary keys had other data types
      (e.g. UUID) maintained the old primary key name. So for example,
      if the `cats` table has a UUID primary key, and the table is renamed to
      `felines`, the primary key index will still be called `cats_pkey`
      instead of `felines_pkey`. This PR corrects it.
      de387ea4
    • R
      Deprecate passing arguments and block at the same time to `count` and `sum` in... · 36417cf0
      Ryuta Kamizono 提交于
      Deprecate passing arguments and block at the same time to `count` and `sum` in `ActiveRecord::Calculations`
      
      `select`, `count`, and `sum` in `Relation` are also `Enumerable` method
      that can be passed block. `select` with block already doesn't take
      arguments since 4fc3366d. This is follow up of that.
      36417cf0
  9. 28 5月, 2017 5 次提交
  10. 27 5月, 2017 1 次提交
  11. 26 5月, 2017 3 次提交
  12. 25 5月, 2017 4 次提交
  13. 24 5月, 2017 4 次提交
  14. 23 5月, 2017 1 次提交
  15. 22 5月, 2017 3 次提交
  16. 20 5月, 2017 1 次提交
    • R
      Make `VALID_DIRECTIONS` to `Set` · 0d874b4a
      Ryuta Kamizono 提交于
      ```ruby
      require "benchmark/ips"
      require "set"
      
      array = [:asc, :desc, :ASC, :DESC, "asc", "desc", "ASC", "DESC"]
      set   = array.to_set
      item  = "DESC"
      
      Benchmark.ips do |x|
        x.report "array" do
          array.include?(item)
        end
        x.report "set" do
          set.include?(item)
        end
      end
      ```
      
      ```
      % ruby array_vs_set.rb
      Warming up --------------------------------------
                     array   188.441k i/100ms
                       set   229.531k i/100ms
      Calculating -------------------------------------
                     array      3.508M (± 9.0%) i/s -     17.525M in   5.043058s
                       set      5.134M (± 7.6%) i/s -     25.707M in   5.038921s
      ```
      0d874b4a