- 13 10月, 2014 1 次提交
-
- 06 10月, 2014 1 次提交
-
-
由 Yves Senn 提交于
-
- 27 9月, 2014 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
- middlware -> middleware
-
- 23 9月, 2014 3 次提交
-
-
由 Simon Eskildsen 提交于
Honoring an overidden `rack.test` allows testing closed connection between multiple requests. This is useful if you're working on database resiliency, to ensure the connection is in the expected state from one request to another on the same worker.
-
由 Prathamesh Sonpatki 提交于
[ci skip]
-
由 Aaron Patterson 提交于
it doesn't work on SQLite3 since it doesn't support truncate, but that's OK. If you call truncate on the connection, you're now bound to that database (same as if you use hstore or any other db specific feature).
-
- 20 9月, 2014 1 次提交
-
-
由 Jon Atack 提交于
-
- 19 9月, 2014 1 次提交
-
-
由 lethalbrains 提交于
-
- 17 9月, 2014 3 次提交
- 15 9月, 2014 1 次提交
-
-
由 Alan Kennedy 提交于
-
- 11 9月, 2014 4 次提交
-
-
由 Yves Senn 提交于
[Matthew Draper & Yves Senn] Closes #16860. (pull request to discuss the implementation)
-
由 Jeremy Kemper 提交于
Allows :limit defaults to be changed without pulling the rug out from under old migrations that omitted :limit because it matched the default at the time.
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
- 09 9月, 2014 2 次提交
-
-
由 Yves Senn 提交于
`AbstractAdapter#supports_views?` defaults to `false` so we have to turn it on in adapter subclasses. Currently the flag only controls test execution. /cc @yahonda
-
由 Yves Senn 提交于
Closes #16684. This is achieved by always generating `GeneratedAssociationMethods` when `ActiveRecord::Base` is subclassed. When some of the included modules of `ActiveRecord::Base` were reordered this behavior was broken as `Core#initialize_generated_modules` was no longer called. Meaning that the module was generated on first access.
-
- 06 9月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 05 9月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 04 9月, 2014 1 次提交
-
-
由 Yves Senn 提交于
[Joshua Cody & Yves Senn] Closes #16757. Prior to this patch schema loading rake tasks had the potential to leak a connection to a different database. This had side-effects when rake tasks operating on the current connection (like `db:seed`) were chained.
-
- 31 8月, 2014 1 次提交
-
-
由 Jeremy Kemper 提交于
Sets the connection collation to the database collation configured in database.yml. Otherwise, `SET NAMES utf8mb4` will use the default collation for that charset (utf8mb4_general_ci) when you may have chosen a different collation, like utf8mb4_unicode_ci. This only applies to literal string comparisons, not column values, so it is unlikely to affect you.
-
- 27 8月, 2014 1 次提交
-
-
由 Yves Senn 提交于
-
- 25 8月, 2014 1 次提交
-
-
由 Yves Senn 提交于
This is a reacon to https://github.com/rails/rails/commit/d6c1205584b1ba597db4071b168681678b1e9875#commitcomment-7502487 This backwards incompatibility was introduced with d6c12055 to fix #7516. However both `connection.default_sequence_name` and `model.sequence_name` are public API. The PostgreSQL adapter should honor the interface and return strings. /cc @matthewd @chancancode
-
- 24 8月, 2014 1 次提交
-
-
由 Godfrey Chan 提交于
* Require either FIRST or LAST qualifier for "NULLS ..." * Require whitespace before "NULLS ..."
-
- 20 8月, 2014 1 次提交
-
-
由 Agis- 提交于
with dynamic conditions. Fixes #16128 This bug was introduced in https://github.com/rails/rails/commit/c35e438620f2d56562251571377995359546393d so it's present from 4.1.2-rc1 and after. https://github.com/rails/rails/commit/c35e438620f2d56562251571377995359546393d merges any relation scopes passed as proc objects to the relation, but does *not* take into account the arity of the lambda. To reproduce: https://gist.github.com/Agis-/5f1f0d664d2cd08dfb9b
-
- 19 8月, 2014 3 次提交
-
-
由 yuuji.yaginuma 提交于
[ci skip] config.active_record.errors_in_transactional_callbacks -> config.active_record.raise_in_transactional_callbacks
-
由 Kassio Borges 提交于
Fixes #15821.
-
由 Arthur Neves 提交于
Currently, Active Record will rescue any errors raised within after_rollback/after_create callbacks and print them to the logs. Next versions of rails will not rescue those errors anymore, and just bubble them up, as the other callbacks. This adds a opt-in flag to enable that behaviour, of not rescuing the errors. Example: # For not swallow errors in after_commit/after_rollback config.active_record.errors_in_transactional_callbacks = true [fixes #13460]
-
- 17 8月, 2014 1 次提交
-
-
由 Godfrey Chan 提交于
WARNING: don't use them! They might change or go away between future beta/RC/ patch releases! Also added a CHANGELOG entry for this.
-
- 16 8月, 2014 1 次提交
-
-
由 Arthur Neves 提交于
after_commit should not run in nested transactions, however they should run once the outermost transaction gets committed. This patch fixes the problem copying the records from the Savepoint to its parent. So the RealTransaction will have all records that needs to run callbacks on it. [fixes #16425]
-
- 13 8月, 2014 1 次提交
-
-
由 Yves Senn 提交于
[Yves Senn & Matthew Draper] The column check was embodied in the defaul index name. If the :name option was used, the specified columns were not verified at all. Given: ``` assert connection.index_exists?(table_name, :foo_id, :name => :index_testings_on_yo_momma) ``` That index could have been defined on any field, not necessarily on `:foo_id`.
-
- 11 8月, 2014 2 次提交
-
-
由 lsylvester 提交于
-
由 Godfrey Chan 提交于
Fixed an issue where custom accessor methods (such as those generated by `enum`) with the same name as a global method are incorrectly overridden when subclassing. This was partially fixed in 41554319 then broken again by e5f15a83. Fixes #16288.
-
- 07 8月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
Currently when we call id_was and we have a custom primary key name Active Record will return the current value of the primary key. This make impossible to correctly do an update operation if you change the id. Fixes #16413
-
- 06 8月, 2014 2 次提交
-
-
由 Yves Senn 提交于
The rake tasks and the `DatabaseTakss` adapter classes used to assume a configuration at some places. This forced the rake tasks to establish a specific connection before calling into `load_schema`. After #15394 this started to cause issues because it could `purge` the wrong database before loading the schema.
-
- 02 8月, 2014 1 次提交
-
-
由 eileencodes 提交于
`source_macro` is no longer used in any ActiveRecord code. I've chosen to deprecate it because it was not marked as nodoc and may be in use outside of rails source.
-
- 31 7月, 2014 1 次提交
-
-
由 joker1007 提交于
When I defines large precision column at RDBMS, I assigns float value, raise ArgumentError (precision too large).
-
- 28 7月, 2014 1 次提交
-
-
由 Kenn Ejima 提交于
-