aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | remove useless assignmentAaron Patterson2011-06-281-2/+1
| | | | | |
* | | | | | lock_optimistically is typically true, so evaluate the common failure case firstAaron Patterson2011-06-281-1/+1
| | | | | |
* | | | | | reduce object allocation during AR instantiationAaron Patterson2011-06-282-3/+8
| | | | | |
* | | | | | remove the check for needs_type_condition? because ensure_proper_type will ↵Aaron Patterson2011-06-272-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | pick up the type column
* | | | | | stop using && for the short circuit side effectAaron Patterson2011-06-271-1/+1
| | | | | |
* | | | | | let strings be converted to symbols inside the interpreterAaron Patterson2011-06-271-2/+2
| | | | | |
* | | | | | avoice paying hash cost if there are no serialized attributesAaron Patterson2011-06-271-3/+4
| | | | | |
* | | | | | cache column defaults for AR object instantiationAaron Patterson2011-06-273-3/+16
| | | | | |
* | | | | | AR object instantiation is ~30% faster in the simple caseAaron Patterson2011-06-272-1/+17
| | | | | |
* | | | | | initialize instance variablesAaron Patterson2011-06-271-0/+2
| | | | | |
* | | | | | oops! remove debugging codesAaron Patterson2011-06-271-1/+0
| | | | | |
* | | | | | default create_with_value to a hash so we can eliminate conditionals, add ↵Aaron Patterson2011-06-275-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | test surrounding create_with(nil) behavior
* | | | | | Bump ARel to 2.1.3Guillermo Iguaran2011-06-271-1/+1
|/ / / / /
* | | | | Merge pull request #1848 from raviolicode/postgresql_order_multiple_paramsSantiago Pastorino2011-06-242-1/+8
|\ \ \ \ \ | | | | | | | | | | | | Fix for complex ordering of multiple columns on postgresql
| * | | | | Improve ordering of multiple columns on postgresqlLucia Escanellas2011-06-242-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Only on postgresql, order("first asc, second asc") was invalid * Closes #1720
* | | | | | Apply the default scope earlier when doing calculations. Fixes #1682.Jon Leighton2011-06-233-5/+24
|/ / / / /
* / / / / Update SQL Server db related rake tasks.Ken Collins2011-06-231-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_fixAaron Patterson2011-06-222-3/+24
|\ \ \ \ | | | | | | | | | | Support reversal of ARel orderings in reverse_sql_order
| * | | | Support reversal of ARel orderings in reverse_sql_orderErnie Miller2011-06-202-3/+24
| | | | |
* | | | | Merge pull request #1632 from tardate/pg_schema_fuAaron Patterson2011-06-214-50/+285
|\ \ \ \ \ | |/ / / / |/| | | | Improving PostgreSQL adapter schema-awareness
| * | | | Merge remote branch 'rails/master' into pg_schema_fuPaul Gallagher2011-06-1918-112/+476
| |\ \ \ \
| * | | | | Make PostgreSQL adapter view-compatiblePaul Gallagher2011-06-193-4/+54
| | | | | | | | | | | | | | | | | | * amongst other things, allows meta_search to run against view-backed models
| * | | | | make extract_schema_and_table a private methodPaul Gallagher2011-06-112-27/+24
| | | | | |
| * | | | | remove table quoting in primary_key methodPaul Gallagher2011-06-113-6/+48
| | | | | | | | | | | | | | | | | | * add/cleanup tests
| * | | | | apply private method indentation conventionPaul Gallagher2011-06-103-25/+25
| | | | | | | | | | | | | | | | | | * tidy test code and fix my typo
| * | | | | Improve PostgreSQL adapter schema-awarenessPaul Gallagher2011-06-103-27/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-variablesJosé Valim2011-06-201-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | Removing shadowing outer local variables warnings
| * | | | | | Removed shadowing variable warning in activerecord railtiesAlexey Gaziev2011-06-201-1/+1
| | | | | | |
* | | | | | | Add missing require 'set'Daniel Azuma2011-06-201-0/+2
|/ / / / / /
* | | | | | Merge pull request #1763 from grantneufeld/schema_column_exists_options_hashJosé Valim2011-06-182-1/+13
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix default options argument on ActiveRecord::ConnectionAdaptors::Table#column_exists?
| * | | | | | Changed the default value for the options argument on ↵Grant Neufeld2011-06-182-1/+13
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Hodgkiss2011-06-184-0/+34
|/ / / / / | | | | | | | | | | | | | | | Rack::Sendfile to function properly. See issue #1761.
* | | | | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-184-13/+15
|\ \ \ \ \
| * | | | | Update remove_index documentationLucia Escanellas2011-06-173-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changes should better reflect present code behavior * Related to issue: https://github.com/rails/rails/issues/1624
| * | | | | Remove trailing whitespacesGuillermo Iguaran2011-06-121-2/+2
| |/ / / /
* | | | | Bump to mysql2 0.3.6Guillermo Iguaran2011-06-171-1/+1
| | | | |
* | | | | Add require 'pathname' as it has not already been required in some circumstancesJon Leighton2011-06-171-0/+1
| | | | |
* | | | | Merge pull request #1636 from metaskills/upstream/3-1-stableAaron Patterson2011-06-171-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 Collins2011-06-101-0/+1
| |/ / / / | | | | | | | | | | | | | | | #table_exists? method a chance.
* | | | | Perf fix - Use an instance variable instead of a class_attribute. Thanks ↵Jon Leighton2011-06-161-8/+4
| | | | | | | | | | | | | | | | | | | | @josevalim and @jhawthorn for the prompting.
* | | | | Bump mysql2 to 0.3.5Arun Agrawal2011-06-161-1/+1
| | | | |
* | | | | Bump mysql2 upSantiago Pastorino and José Ignacio Costa2011-06-161-1/+1
| | | | |
* | | | | Pass mass-assignment options to nested models - closes #1673.Andrew White2011-06-134-18/+276
| | | | |
* | | | | Rename tests to reflect associationsAndrew White2011-06-131-30/+30
| | | | |
* | | | | Add support for using an ARCONFIG environment variable to specify the ↵Jon Leighton2011-06-122-4/+12
| | | | | | | | | | | | | | | | | | | | location of the config.yml file for running the tests
* | | | | Oops, this should have been in the last commit :zap:Jon Leighton2011-06-121-1/+1
| | | | |
* | | | | Make assert_no_queries literally enforce that there are no queries. As in, ↵Jon Leighton2011-06-122-15/+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 itJon Leighton2011-06-122-10/+10
| | | | |
* | | | | Replace inline lambdas with named methodsJon Leighton2011-06-121-29/+42
| | | | |
* | | | | Refactor tests to be less brittleJon Leighton2011-06-123-28/+74
| | | | |