Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | | | remove useless assignment | Aaron Patterson | 2011-06-28 | 1 | -2/+1 | |
| | | | | | ||||||
* | | | | | lock_optimistically is typically true, so evaluate the common failure case first | Aaron Patterson | 2011-06-28 | 1 | -1/+1 | |
| | | | | | ||||||
* | | | | | reduce object allocation during AR instantiation | Aaron Patterson | 2011-06-28 | 2 | -3/+8 | |
| | | | | | ||||||
* | | | | | remove the check for needs_type_condition? because ensure_proper_type will ↵ | Aaron Patterson | 2011-06-27 | 2 | -3/+4 | |
| | | | | | | | | | | | | | | | | | | | | pick up the type column | |||||
* | | | | | stop using && for the short circuit side effect | Aaron Patterson | 2011-06-27 | 1 | -1/+1 | |
| | | | | | ||||||
* | | | | | let strings be converted to symbols inside the interpreter | Aaron Patterson | 2011-06-27 | 1 | -2/+2 | |
| | | | | | ||||||
* | | | | | avoice paying hash cost if there are no serialized attributes | Aaron Patterson | 2011-06-27 | 1 | -3/+4 | |
| | | | | | ||||||
* | | | | | cache column defaults for AR object instantiation | Aaron Patterson | 2011-06-27 | 3 | -3/+16 | |
| | | | | | ||||||
* | | | | | AR object instantiation is ~30% faster in the simple case | Aaron Patterson | 2011-06-27 | 2 | -1/+17 | |
| | | | | | ||||||
* | | | | | initialize instance variables | Aaron Patterson | 2011-06-27 | 1 | -0/+2 | |
| | | | | | ||||||
* | | | | | default create_with_value to a hash so we can eliminate conditionals, add ↵ | Aaron Patterson | 2011-06-27 | 3 | -4/+5 | |
|/ / / / | | | | | | | | | | | | | test surrounding create_with(nil) behavior | |||||
* | | | | Merge pull request #1848 from raviolicode/postgresql_order_multiple_params | Santiago Pastorino | 2011-06-24 | 1 | -1/+1 | |
|\ \ \ \ | | | | | | | | | | | Fix for complex ordering of multiple columns on postgresql | |||||
| * | | | | Improve ordering of multiple columns on postgresql | Lucia Escanellas | 2011-06-24 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | * Only on postgresql, order("first asc, second asc") was invalid * Closes #1720 | |||||
* | | | | | Apply the default scope earlier when doing calculations. Fixes #1682. | Jon Leighton | 2011-06-23 | 1 | -5/+11 | |
|/ / / / | ||||||
* / / / | Update SQL Server db related rake tasks. | Ken Collins | 2011-06-23 | 1 | -6/+7 | |
|/ / / | | | | | | | | | | | | | | | | * Uses open source smoscript since scptxfr came out in 2000. * Uses sqlcmd which replaces osql. * Takes advantage of host/user/pass passed down by TinyTDS. | |||||
* | | | Merge pull request #1790 from ernie/reverse_sql_order_fix | Aaron Patterson | 2011-06-22 | 1 | -3/+12 | |
|\ \ \ | | | | | | | | | Support reversal of ARel orderings in reverse_sql_order | |||||
| * | | | Support reversal of ARel orderings in reverse_sql_order | Ernie Miller | 2011-06-20 | 1 | -3/+12 | |
| | | | | ||||||
* | | | | Merge pull request #1632 from tardate/pg_schema_fu | Aaron Patterson | 2011-06-21 | 1 | -47/+72 | |
|\ \ \ \ | |/ / / |/| | | | Improving PostgreSQL adapter schema-awareness | |||||
| * | | | Merge remote branch 'rails/master' into pg_schema_fu | Paul Gallagher | 2011-06-19 | 10 | -69/+99 | |
| |\ \ \ | ||||||
| * | | | | Make PostgreSQL adapter view-compatible | Paul Gallagher | 2011-06-19 | 1 | -3/+5 | |
| | | | | | | | | | | | | | | | * amongst other things, allows meta_search to run against view-backed models | |||||
| * | | | | make extract_schema_and_table a private method | Paul Gallagher | 2011-06-11 | 1 | -20/+17 | |
| | | | | | ||||||
| * | | | | remove table quoting in primary_key method | Paul Gallagher | 2011-06-11 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | * add/cleanup tests | |||||
| * | | | | apply private method indentation convention | Paul Gallagher | 2011-06-10 | 1 | -22/+22 | |
| | | | | | | | | | | | | | | | * tidy test code and fix my typo | |||||
| * | | | | Improve PostgreSQL adapter schema-awareness | Paul Gallagher | 2011-06-10 | 1 | -25/+51 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * table_exists? scoped by schema search path unless schema is explicitly named. Added tests and doc to clarify the behaviour * extract_schema_and_table tests and implementation extended to cover all cases * primary_key does not ignore schema information * add current_schema and schema_exists? methods * more robust table referencing in insert_sql and sql_for_insert methods | |||||
* | | | | | Merge pull request #1784 from gazay/3-1-stable-shadowing-variables | José Valim | 2011-06-20 | 1 | -1/+1 | |
|\ \ \ \ \ | | | | | | | | | | | | | Removing shadowing outer local variables warnings | |||||
| * | | | | | Removed shadowing variable warning in activerecord railties | Alexey Gaziev | 2011-06-20 | 1 | -1/+1 | |
| | | | | | | ||||||
* | | | | | | Add missing require 'set' | Daniel Azuma | 2011-06-20 | 1 | -0/+2 | |
|/ / / / / | ||||||
* | | | | | Merge pull request #1763 from grantneufeld/schema_column_exists_options_hash | José Valim | 2011-06-18 | 1 | -1/+1 | |
|\ \ \ \ \ | | | | | | | | | | | | | Fix default options argument on ActiveRecord::ConnectionAdaptors::Table#column_exists? | |||||
| * | | | | | Changed the default value for the options argument on ↵ | Grant Neufeld | 2011-06-18 | 1 | -1/+1 | |
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | ActiveRecord::ConnectionAdapters::Table#column_exists? from nil to an empty Hash {}. That method calls through to ActiveRecord::ConnectionAdapters::SchemaStatements##column_exists? expects options to be a Hash. When options was nil, an error would occur in cases where the column did exist because the called method attempted to perform a key lookup on options. | |||||
* / | | | | Fix inconsistencies by being polite to the wrapped body. Needed for ↵ | Steve Hodgkiss | 2011-06-18 | 2 | -0/+16 | |
|/ / / / | | | | | | | | | | | | | Rack::Sendfile to function properly. See issue #1761. | |||||
* | | | | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-06-18 | 4 | -13/+15 | |
|\ \ \ \ | ||||||
| * | | | | Update remove_index documentation | Lucia Escanellas | 2011-06-17 | 3 | -11/+13 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | * Changes should better reflect present code behavior * Related to issue: https://github.com/rails/rails/issues/1624 | |||||
| * | | | | Remove trailing whitespaces | Guillermo Iguaran | 2011-06-12 | 1 | -2/+2 | |
| |/ / / | ||||||
* | | | | Bump to mysql2 0.3.6 | Guillermo Iguaran | 2011-06-17 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Merge pull request #1636 from metaskills/upstream/3-1-stable | Aaron Patterson | 2011-06-17 | 1 | -0/+1 | |
|\ \ \ \ | | | | | | | | | | | Allow the connection pool's #table_exists? method to give the connections | |||||
| * | | | | Allow the connection pool's #table_exists? method to give the connections ↵ | Ken Collins | 2011-06-10 | 1 | -0/+1 | |
| |/ / / | | | | | | | | | | | | | #table_exists? method a chance. | |||||
* | | | | Perf fix - Use an instance variable instead of a class_attribute. Thanks ↵ | Jon Leighton | 2011-06-16 | 1 | -8/+4 | |
| | | | | | | | | | | | | | | | | @josevalim and @jhawthorn for the prompting. | |||||
* | | | | Bump mysql2 to 0.3.5 | Arun Agrawal | 2011-06-16 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Bump mysql2 up | Santiago Pastorino and José Ignacio Costa | 2011-06-16 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Pass mass-assignment options to nested models - closes #1673. | Andrew White | 2011-06-13 | 2 | -16/+25 | |
| | | | | ||||||
* | | | | Make assert_no_queries literally enforce that there are no queries. As in, ↵ | Jon Leighton | 2011-06-12 | 1 | -0/+4 | |
| | | | | | | | | | | | | | | | | not a single line of SQL should be sent to the database, not even stuff that is ignored by assert_queries. The argument being that if you write assert_no_queries, you really do not want there to be any queries. | |||||
* | | | | If we're going to use a global variable, let's at least namespace it | Jon Leighton | 2011-06-12 | 1 | -6/+6 | |
| | | | | ||||||
* | | | | Replace inline lambdas with named methods | Jon Leighton | 2011-06-12 | 1 | -29/+42 | |
| | | | | ||||||
* | | | | Move BEGIN and COMMIT into IGNORED_SQL rather than having them as a special ↵ | Jon Leighton | 2011-06-12 | 1 | -1/+0 | |
| | | | | | | | | | | | | | | | | case in assert_queries | |||||
* | | | | Don't wrap operations on collection associations in transactions when they ↵ | benedikt | 2011-06-12 | 1 | -3/+9 | |
|/ / / | | | | | | | | | | are not needed, so the connection adapter does not send empty BEGIN COMMIT transactions blocks to the database. | |||||
* | | | Ensure engine migrations are copied in the same sequence that they are required. | Brian Quinn | 2011-06-10 | 1 | -1/+1 | |
| | | | ||||||
* | | | don't reinitialize the arel_table unless the table_name changes | Damien Mathieu | 2011-06-09 | 1 | -1/+2 | |
| | | | ||||||
* | | | Merge pull request #1591 from smartinez87/unused | José Valim | 2011-06-08 | 1 | -1/+1 | |
|\ \ \ | | | | | | | | | Fix "warning: assigned but unused variable" on AR tests | |||||
| * | | | Remove unused 'quoted_column_names' variable. | Sebastian Martinez | 2011-06-08 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | No need to create a new Arel::Table, as the arel_table method already ↵ | Rodrigo Navarro | 2011-06-08 | 1 | -1/+0 | |
|/ / / | | | | | | | | | | creates a new one |