Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | load active_support/deprecation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | Deprecate Relation#all. | Jon Leighton | 2012-07-27 | 1 | -1/+1 |
| | | | | | | It has been moved to active_record_deprecated_finders. Use #to_a instead. | ||||
* | Add fkey attributes to `join_table` migration generator | Aleksey Magusev | 2012-07-19 | 1 | -3/+3 |
| | |||||
* | revert Default timestamps to non-null | Dave Kroondyk | 2012-07-18 | 1 | -1/+1 |
| | | | | | | | Commit 3dbedd2 added NOT NULL constraints to timestamps. Commit fcef728 started to revert this, but was incomplete. With this commit, 3dbedd2 should be fully reverted and timestamps will no longer default to NOT NULL. | ||||
* | Add join table migration generator | Aleksey Magusev | 2012-07-18 | 1 | -2/+5 |
| | | | | | | | | | | | | | For instance, running rails g migration CreateMediaJoinTable artists musics:uniq will create a migration with create_join_table :artists, :musics do |t| # t.index [:artist_id, :music_id] t.index [:music_id, :artist_id], unique: true end | ||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-07-07 | 1 | -2/+4 |
|\ | |||||
| * | fix AR::SchemaStatements#column_exists? example [ci skip] | Francesco Rodriguez | 2012-06-30 | 1 | -1/+1 |
| | | |||||
| * | update AR::SchemaStatements#column_exists? documentation [ci skip] | Francesco Rodriguez | 2012-06-30 | 1 | -2/+4 |
| | | |||||
* | | Refactor locked? method in query cache | Carlos Antonio da Silva | 2012-07-07 | 1 | -5/+2 |
| | | | | | | | | Introduced in 75b340d1a4bcf2f1233fb65a15ff6b8059e2230e | ||||
* | | Disable query cache for lock queries | Damir Zekic | 2012-07-06 | 1 | -1/+9 |
| | | | | | | | | Fixes #867 | ||||
* | | fix quoting for ActiveSupport::Duration instances | Francesco Rodriguez | 2012-07-04 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes quoting for ActiveSupport::Duration instances: # before >> ActiveRecord::Base.connection.quote 30.minutes => "'--- 1800\n...\n'" # after >> ActiveRecord::Base.connection.quote 30.minutes => "1800" Also, adds a test for type casting ActiveSupport::Duration instances. Related to #1119. | ||||
* | | Don't need to use delete in the options hash | Rafael Mendonça França | 2012-07-03 | 2 | -3/+2 |
| | | |||||
* | | Refactor references schema definitions | Aleksey Magusev | 2012-07-03 | 1 | -18/+12 |
| | | |||||
* | | Add references schema statements | Aleksey Magusev | 2012-07-03 | 1 | -0/+37 |
| | | | | | | | | | | | | | | | | | | | | Examples: add_reference :products, :supplier, polymorphic: true, index: true remove_reference :products, :user `add_belongs_to` and `remove_belongs_to` are acceptable. | ||||
* | | Add more options to column_exists? method | Aleksey Magusev | 2012-06-30 | 1 | -4/+6 |
|/ | | | | Also fix failures in check options for nil | ||||
* | add :nodoc: to internal implementations [ci skip] | Francesco Rodriguez | 2012-06-22 | 1 | -1/+1 |
| | |||||
* | Avoid unnecessary catching of Exception instead of StandardError. | Dylan Smith | 2012-06-17 | 1 | -2/+2 |
| | |||||
* | Simplify AR configuration code. | Jon Leighton | 2012-06-15 | 1 | -6/+8 |
| | | | | | Get rid of ActiveModel::Configuration, make better use of ActiveSupport::Concern + class_attribute, etc. | ||||
* | Merge pull request #6492 from pmahoney/fair-connection-pool2 | Rafael Mendonça França | 2012-06-11 | 1 | -37/+174 |
|\ | | | | | | | | | | | | | Fair connection pool2 Conflicts: activerecord/test/cases/associations/eager_test.rb | ||||
| * | Make connection pool fair with respect to waiting threads. | Patrick Mahoney | 2012-05-25 | 1 | -37/+174 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The core of this fix is a threadsafe, fair Queue class. It is very similar to Queue in stdlib except that it supports waiting with a timeout. The issue this solves is that if several threads are contending for database connections, an unfair queue makes is possible that a thread will timeout even while other threads successfully acquire and release connections. A fair queue means the thread that has been waiting the longest will get the next available connection. This includes a few test fixes to avoid test ordering issues that cropped up during development of this patch. | ||||
* | | Symbol responds_to :upcase & :downcase in Ruby >= 1.9 | Akira Matsuda | 2012-06-06 | 1 | -1/+1 |
| | | |||||
* | | Work around undiagnosed bug that's draining a relation's bind_values | Jeremy Kemper | 2012-05-31 | 1 | -0/+1 |
| | | |||||
* | | SchemaMigration should be loaded lazily. | kennyj | 2012-05-29 | 1 | -1/+0 |
|/ | |||||
* | Whitespaces :scissors: | Rafael Mendonça França | 2012-05-23 | 1 | -6/+6 |
| | |||||
* | ConnectionPool wait_timeout no longer used for different types of timeouts. ↵ | Jonathan Rochkind | 2012-05-23 | 1 | -7/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #6441 An AR ConnectionSpec `wait_timeout` is pre-patch used for three different things: * mysql2 uses it for MySQL's own wait_timeout (how long MySQL should allow an idle connection before closing it), and defaults to 2592000 seconds. * ConnectionPool uses it for "number of seconds to block and wait for a connection before giving up and raising a timeout error", default 5 seconds. * ConnectionPool uses it for the Reaper, for deciding if a 'dead' connection can be reaped. Default 5 seconds. Previously, if you want to change these from defaults, you need to change them all together. This is problematic _especially_ for the mysql2/ConnectionPool conflict, you will generally _not_ want them to be the same, as evidenced by their wildly different defaults. This has caused real problems for people #6441 #2894 But as long as we're changing this, forcing renaming the ConnectionPool key to be more specific, it made sense to seperate the two ConnectionPool uses too -- these two types of ConnectionPool timeouts ought to be able to be changed independently, you won't neccesarily want them to be the same, even though the defaults are (currently) the same. | ||||
* | Revert "Merge pull request #6416 from pmahoney/threadsafe-connection-pool" | Rafael Mendonça França | 2012-05-22 | 1 | -86/+34 |
| | | | | | | | | | | | | This reverts commit d2901f0fc4270a765717ad572d559dc49a56b3a8, reversing changes made to 525839fdd8cc34d6d524f204528d5b6f36fe410c. Conflicts: activerecord/test/cases/connection_pool_test.rb Reason: This change broke the build (http://travis-ci.org/#!/rails/rails/builds/1391490) and we don't have any solution until now. I asked the author to try to fix it and open a new pull request. | ||||
* | Make connection pool fair with respect to waiting threads. | Patrick Mahoney | 2012-05-20 | 1 | -34/+86 |
| | |||||
* | Synchronize read and modification of @reserved_connections hash to avoid ↵ | Patrick Mahoney | 2012-05-19 | 1 | -4/+8 |
| | | | | concurrency error. | ||||
* | Integer limit out of range should be allowed to raise. Closes #6272 | Erich Menge | 2012-05-16 | 1 | -1/+1 |
| | |||||
* | remove unnecessary 'examples' noise [ci skip] | Vijay Dev | 2012-05-11 | 2 | -28/+18 |
| | |||||
* | Merge pull request #5362 from zenprogrammer/quoting_bug | Aaron Patterson | 2012-05-09 | 1 | -0/+1 |
|\ | | | | | Fixed bug in ActiveRecord that caused classes to be quoted incorrectly | ||||
| * | Fixed bug in Quoting that caused classes to be quoted incorrectly | Ryan Oblak | 2012-03-09 | 1 | -0/+1 |
| | | |||||
* | | Refactored remove_column | Edgars Beigarts | 2012-05-02 | 2 | -3/+1 |
| | | |||||
* | | Remove unused assignments | Mark Rushakoff | 2012-04-29 | 1 | -5/+3 |
| | | |||||
* | | Merge pull request #5698 from dougcole/support_postgresql_partitioning | Aaron Patterson | 2012-04-27 | 1 | -2/+2 |
|\ \ | | | | | | | Support postgresql partitioning by making INSERT RETURNING optional | ||||
| * | | add use_returning as a postgresql connection config | Doug Cole | 2012-03-31 | 1 | -2/+2 |
| | | | |||||
* | | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-04-18 | 1 | -1/+1 |
|\ \ \ | |||||
| * | | | Fix typo on the add_index. | kennyj | 2012-04-13 | 1 | -1/+1 |
| | | | | |||||
* | | | | opening a connection will block if the pool is full | Aaron Patterson | 2012-04-15 | 1 | -20/+39 |
| | | | | |||||
* | | | | Automatically create indexes for references/belongs_to statements in migrations. | Joshua Wood | 2012-04-14 | 2 | -4/+21 |
|/ / / | |||||
* | | | Fix delete_all when chained with joins. | Rafael Mendonça França | 2012-04-10 | 1 | -3/+17 |
| | | | | | | | | | | | | Closes #5202 and #919 | ||||
* | | | Merge pull request #5716 from jurriaan/tr-gsub-cleanup | Santiago Pastorino | 2012-04-04 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | Updated/changed unneeded tr/gsubs | ||||
| * | | | Updated/changed useless tr/gsubs | Jurriaan Pruis | 2012-04-03 | 1 | -1/+1 |
| |/ / | |||||
* / / | Remove unnecessary articles. | Waseem Ahmad | 2012-04-03 | 1 | -3/+3 |
|/ / | |||||
* | | Use one 'be'. | Waseem Ahmad | 2012-03-24 | 1 | -1/+1 |
| | | |||||
* | | make sure connections returned after close are marked as in_use | Aaron Patterson | 2012-03-12 | 1 | -4/+17 |
| | | |||||
* | | deprecated clear_stale_active_connections! can call #reap instead of ↵ | Jonathan Rochkind | 2012-03-12 | 1 | -1/+2 |
| | | | | | | | | no-op'ing, #reap does the same thing | ||||
* | | make active_connection? return true only if there is an open connection in ↵ | Aaron Patterson | 2012-03-08 | 1 | -7/+4 |
| | | | | | | | | use for the current thread. fixes #5330 | ||||
* | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-03-03 | 1 | -0/+3 |
|\ \ | |/ |/| |