- 06 2月, 2020 3 次提交
-
-
由 Ryuta Kamizono 提交于
Add support for partitioned indexes in PostgreSQL 11+
-
由 Sebastián Palma 提交于
indexes in a table. Currently the pg_class catalog is filtered out to retrieve the indexes in a table by its relkind value. Which in versions lower than 11 of PostgreSQL is always `i` (lower case). But since version 11, PostgreSQL supports partitioned indexes referenced with a relkind value of `I` (upper case). This makes any feature within the current code base to exclude those partitioned indexes. The solution proposed is to make use of the `IN` clause to filter those relkind values of `i` and/or `I` when retrieving a table indexes.
-
由 Aaron Patterson 提交于
Add a fallback database config when loading schema cache
-
- 05 2月, 2020 14 次提交
-
-
由 Katrina Owen 提交于
-
由 Ryuta Kamizono 提交于
```ruby str = "abc" Benchmark.ips do |x| x.report("start_with?") { str.start_with?("a") } x.report("first ==") { str.first == "a" } end ``` ``` Warming up -------------------------------------- start_with? 282.381k i/100ms first == 207.305k i/100ms Calculating ------------------------------------- start_with? 10.239M (± 2.2%) i/s - 51.393M in 5.022151s first == 4.593M (± 4.5%) i/s - 23.011M in 5.021434s ```
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
I think allowing nested array parameters is almost useless.
-
由 Ryuta Kamizono 提交于
This is an alternative of b7e591a5 and a43de738. Handling `if options.any?` is not preferable solution for kwargs.
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Rafael França 提交于
Change all "can not"s to the correct "cannot"
-
由 T.J. Schuck 提交于
It's been 6 years since [the original](https://github.com/rails/rails/pull/13584), so we're overdue for a sequel. The correct word is "cannot", one word, not "can not", two words.
-
由 Katrina Owen 提交于
The schema cache defaults to loading the 'primary' database config. However, if an app doesn't have a db config with a spec name of 'primary' the filename lookup will blow up. This adds a fallback for this case.
-
- 04 2月, 2020 3 次提交
-
-
由 Ryuta Kamizono 提交于
Update "Eagerly Requiring Helpers" section in testing docs [ci skip]
-
This will change the path for requiring helper files to be consistent with previous examples in "Using Separate Files" section
-
由 Aaron Patterson 提交于
Fix the environment.rb file path in the benchmark generator template
-
- 03 2月, 2020 1 次提交
-
-
由 Narendra Rajput 提交于
-
- 02 2月, 2020 3 次提交
-
-
由 Kasper Timm Hansen 提交于
[GitHub Actions] Save few seconds on every build
-
由 Juanito Fatas 提交于
Install bundler takes about 7-8s and without installing documentations takes about 3-4s
-
由 Xavier Noria 提交于
-
- 01 2月, 2020 3 次提交
-
-
由 Kasper Timm Hansen 提交于
Correct test helpers paths in test guides
-
由 Muhammad 提交于
This will correct the paths to the test helpers and make the examples work.
-
由 Ryuta Kamizono 提交于
-
- 31 1月, 2020 4 次提交
-
-
由 Aaron Patterson 提交于
Save a string allocation for each attribute method call
-
由 Jean Boussier 提交于
-
由 Carlos Antonio da Silva 提交于
Follow-up c280ae72.
-
由 Eileen M. Uchitelle 提交于
Add support for `if_exists/if_not_exists` on `remove_column/add_column`
-
- 30 1月, 2020 6 次提交
-
-
由 eileencodes 提交于
This PR adds support for `if_exists` on `remove_column` and `if_not_exists` on `add_column` to support silently ignoring migrations if the remove tries to remove a non-existent column or an add tries to add an already existing column. We (GitHub) have custom monkey-patched support for these features and would like to upstream this behavior. This matches the same behavior that is supported for `create_table` and `drop_table`. The behavior for sqlite is different from mysql/postgres and sqlite for remove column and that is reflected in the tests.
-
由 Eileen M. Uchitelle 提交于
Use correct filename for schema cache on load
-
由 Kasper Timm Hansen 提交于
Cleanup cache expanded_key
-
由 John Hawthorn 提交于
Use transform_values to build hash_rows
-
由 Vinicius Stock 提交于
-
由 Katrina Owen 提交于
The initializer that loads the default schema cache on the default connection doesn't account for the case where an app overrides the default filename either via ENV["SCHEMA_PATH"], or via the :schema_cache_path defined in the db config. Note that as discussed in #34449 this initializer doesn't work for applications using multiple databases, and this change doesn't fix that.
-
- 29 1月, 2020 3 次提交
-
-
由 eileencodes 提交于
`lib` isn't autoloaded in most applications and I wouldn't recomment storing test helpers there even if it was. This was brought up in #38343. I think the original author meant to write `test/lib`. I updated the docs to say to use either `test/lib` or `test/test_helpers` (personally I prefer the latter).
-
由 Rafael França 提交于
Deduplicate empty `@if` and `@unless` arrays in Active Support callbacks
-
由 Ryuta Kamizono 提交于
-