- 19 4月, 2016 30 次提交
-
-
由 Jon Moss 提交于
Change the Hash.to_xml with a lamda example
-
由 Justin 提交于
Update 'foo'.to_xml(lambda { |options, key| options[:builder].b(key) }) to {foo: lambda { |options, key| options[:builder].b(key) }}.to_xml
-
由 Jeremy Daer 提交于
Remove unused `table_with_autoincrement` table
-
由 Ryuta Kamizono 提交于
-
由 Jeremy Daer 提交于
connection adapters column, delegation in Active Record have not use …
-
由 Jeremy Daer 提交于
Merge pull request #24503 from prathamesh-sonpatki/add-test-for-warn-on-records-fetched-greater-than Add missing test case for record_fetched_greater_than config
-
由 Jeremy Daer 提交于
Address ORA-00923 error by quoting a reserved word "SIZE"
-
由 Jeremy Daer 提交于
-
由 Jeremy Daer 提交于
-
由 Jeremy Daer 提交于
Raise `ArgumentError` when an invalid form is passed to `Date#to_time`
-
由 Jeremy Daer 提交于
Extract `extract_schema_qualified_name` method
-
由 Jeremy Daer 提交于
Extract `arel_visitor` and move up to the abstract adapter
-
由 Jeremy Daer 提交于
-
由 Jeremy Daer 提交于
* Use separate stream handler builders for easy override and testing. * Fix worker pool execution that was silently failing since it only expected connection receivers. Sparked by code in #24162.
-
由 Jeremy Daer 提交于
Ruby 2.4 introduces `Array#sum`, but it only supports numeric elements, breaking our `Enumerable#sum` which supports arbitrary `Object#+`. To fix, override `Array#sum` with our compatible implementation. Native Ruby 2.4: %w[ a b ].sum # => TypeError: String can't be coerced into Fixnum With `Enumerable#sum` shim: %w[ a b ].sum # => 'ab' We tried shimming the fast path and falling back to the compatible path if it fails, but that ends up slower even in simple causes due to the cost of exception handling. Our only choice is to override the native `Array#sum` with our `Enumerable#sum`.
-
由 Jeremy Daer 提交于
Avoid a string value truncation in uniqueness validation
-
由 Jeremy Daer 提交于
Add `ActiveRecord::ValueTooLong` exception class
-
由 Jeremy Daer 提交于
`foreign_key` respects `table_name_prefix` and `table_name_suffix`
-
由 Santiago Pastorino 提交于
Add #16917 to release notes
-
由 Santiago Pastorino 提交于
Fixed assertions with regex used in dbs tests[warnings]
-
由 Vipul A M 提交于
[ci skip]
-
```ruby ActiveSupport::Duration.parse('P3Y6M4DT12H30M5S') (3.years + 3.days).iso8601 ``` Inspired by Arnau Siches' [ISO8601 gem](https://github.com/arnau/ISO8601/) and rewritten by Andrey Novikov with suggestions from Andrew White. Test data from the ISO8601 gem redistributed under MIT license. (Will be used to support the PostgreSQL interval data type.)
-
由 Ryuta Kamizono 提交于
-
由 Vipul A M 提交于
-
由 Jeremy Daer 提交于
Primary key should be `NOT NULL`
-
由 Jeremy Daer 提交于
* Rewrite docs * Support blocks in addition to method names and Proc args * Check for valid arguments * Convert `periodically :method_name` to Proc callbacks * Drop periodic runner methods from the worker pool * Ensure we clear active periodic timers after shutdown
-
由 Jeremy Daer 提交于
Fix isolated test failures due to referencing ActiveRecord::Tasks::DatabaseAlreadyExists before another test happened to make it available
-
由 Sean Griffin 提交于
Don't create new arrays when trying to compute non_empty_predicates for ast generation
-
由 Jeremy Daer 提交于
* Switch to keyword args where we can without breaking compat. * Use add_table_options! for :options, too. * Some code polish.
-
由 Vipul A M 提交于
Don't create new arrays when trying to compute non_empty_predicates for where clause predicate. Get a 3-4% improvement in AST generation. Perf compare: https://gist.github.com/vipulnsward/7e4e9ecb157e574002313249a7969c82
-
- 18 4月, 2016 10 次提交
-
-
由 Jeremy Daer 提交于
Fix forced cache miss for fetch when called without a block.
-
由 Santosh Wadghule 提交于
- Raised an argument error if no block is passed to #fetch with 'force: true' option is set. - Added tests for the same.
-
由 Vipul A M 提交于
Fix typos in ActionCable Channel [ci skip]
-
由 Xavier Noria 提交于
Railties' `config` method instatiates a Rails::Railtie::Configuration object. Rails::Configuration is not used in this file. The patch does not replace the file being required with the one for Rails::Railtie::Configuration because that one is autoloaded. See the spot where this patch changes double quotes with single quotes. Rails::Railtie::Configuration does depend on Rails::Configuration, and it requires it accordingly.
-
由 Vipul A M 提交于
Update ActiveRecord associations documentation on :validate option [ci skip]
-
由 Tomasz Stachewicz 提交于
[ci skip] Update ActiveRecord associations documentation to avoid confusion with :validate option. Caused by #24532.
-
由 Xavier Noria 提交于
Document consistency [ci skip]
-
由 Tom Kadwill 提交于
-
由 Yves Senn 提交于
Add test to verify named unique index, when creating reference via add_reference
-
由 Jeremy Daer 提交于
Introduce weeks and hours periods to Duration. Change 1.week to create a 1 week duration instead of 7 days and 1.hour to create a 1 hour duration instead of 3600 seconds.
-