aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
...
| * | No transaction for a test that creates fixtures in the test bodyAkira Matsuda2014-08-291-0/+1
| | |
| * | make it easy to copy & paste the config from deprecation warning.Yves Senn2014-08-281-2/+3
| | | | | | | | | | | | [ci skip]
| * | User Model#last to certainly get lastly created dataAkira Matsuda2014-08-281-1/+1
| | | | | | | | | | | | This test would fail when executed after any test that calls fixtures(:binaries)
| * | Move association definition to the model fileAkira Matsuda2014-08-282-2/+1
| | |
| * | Be sure that test fixtures satisfy referential integrity before calculatingAkira Matsuda2014-08-281-1/+1
| | | | | | | | | | | | | | | | | | | | | There exists some other test files that load :minivans fixtures but don't load :speedometers. Loading :speedometers here prevents the following error when this test was run after such test: CalculationsTest#test_should_group_by_association_with_non_numeric_foreign_key: ActiveRecord::RecordNotFound: Couldn't find all Speedometers with 'speedometer_id': (ABC, s1) (found 1 results, but was looking for 2)
| * | No need to sort testsAkira Matsuda2014-08-281-1/+1
| | | | | | | | | | | | Dir.glob result must be already sorted anyway
| * | Ignore SCHEMA queries when asserting no queriesAkira Matsuda2014-08-285-22/+22
| | |
| * | Reset schema properly after schema changing testAkira Matsuda2014-08-281-0/+2
| | |
| * | Merge pull request #16702 from sgrif/sg-binary-serializedRafael Mendonça França2014-08-273-0/+31
| |\ \ | | | | | | | | Correctly detect mutation on serialized columns mapping to binary
| | * | Correctly detect mutation on serialized columns mapping to binarySean Griffin2014-08-273-0/+31
| | | | | | | | | | | | | | | | Fixes #16701
| * | | minor changelog formatting changes.Yves Senn2014-08-271-2/+3
| | | |
| * | | [ci skip] Updated documentation syntax of other parameter for rdocTom Kadwill2014-08-271-1/+1
| | | |
| * | | Merge pull request #16705 from tomkadwill/documented_many_block_paramZachary Scott2014-08-261-1/+1
| |\ \ \ | | | | | | | | | | [ci skip] Updated documentation syntax of block parameter for rdoc
| | * | | [ci skip] Updated documentation syntax of block parameter for rdoc Tom Kadwill2014-08-261-1/+1
| | | | |
| * | | | [ci skip] Updated include to reference record parameter for rdocTom Kadwill2014-08-261-1/+1
| |/ / /
| * / / [ci skip] Updated documentation syntax of block parameter for rdocTom Kadwill2014-08-261-1/+1
| |/ /
| * | [ci skip] Added documentation for has_and_belongs_to_many extension parameterTom Kadwill2014-08-261-0/+15
| | |
| * | Merge pull request #16646 from sgrif/sg-perf-regressionJeremy Kemper2014-08-251-1/+20
| |\ \ | | | | | | | | Cache the value of `changed_attributes` when calling `changes_applied`
| | * | Cache the value of `changed_attributes` when calling `changes_applied`Sean Griffin2014-08-221-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `changes_applied` calles `changes`, which will call `changed_attributes` multiple times in a loop. This method actually performs work now, so we should cache the results while looping over it when we know it cannot change.
| * | | Override #find_by! in core to enable AST cachingGodfrey Chan2014-08-252-0/+26
| | | |
| * | | Fixed find_by("sql fragment without bindings") on masterGodfrey Chan2014-08-254-17/+23
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Also duplicated find_by tests from relations_test.rb to finder_test.rb now that we have a completely different implementation on the class (in core.rb with AST caching stuff). * Also removed a (failing) test that used mocks. Now that we have tests for the behavior, there's no point having another test that tests the implementation (that it delegates). Further, what the test was implying is nolonger true with the current implementation, because Class.find_by is a real method now.
| * | pg, `default_sequence_name` needs to return a string.Yves Senn2014-08-253-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Fix a few typos [ci skip]Robin Dupret2014-08-241-1/+1
| | |
| * | Merge pull request #16675 from tomkadwill/has_many_documenting_extension_paramSantiago Pastorino2014-08-241-0/+14
| |\ \ | | | | | | | | [ci skip] Added documentation for has_many extension parameter
| | * | [ci skip] Added documentation for has_many extension parameterTom Kadwill2014-08-241-0/+14
| | | |
| * | | CHANGELOG & improvements to #16649Godfrey Chan2014-08-232-2/+9
| | | | | | | | | | | | | | | | | | | | * Require either FIRST or LAST qualifier for "NULLS ..." * Require whitespace before "NULLS ..."
| * | | Don't trim excess whitespace in pg #columns_for_distinctAgis-2014-08-242-1/+10
| | |/ | |/| | | | | | | Fixes #16623 introduced by https://github.com/rails/rails/commit/3d5a2019bcccc6fb01bee4811ca669f4383edb51
| * | Merge pull request #15932 from joseluistorres/issue-11957-uuidsRafael Mendonça França2014-08-223-1/+17
| |\ \ | | | | | | | | adding the exception RecordNotFound to UUID find #11957
| | * | adding the exception RecordNotFound to UUID findJoseLuis Torres2014-08-213-1/+17
| | | |
| * | | Don't calculate in-place changes twiceSean Griffin2014-08-221-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | Now that `changed_attributes` includes in place changes, we don't need to override these methods in Active Record. Partially fixes the performance regression caused by #16189
| * | | [ci skip] Running AR tests guide [Fixes GH-15891]Zachary Scott2014-08-221-2/+2
| | |/ | |/| | | | | | | Patch by @bcjordan
| * | [ci skip] Added documentation for has_and_belongs_to_many scope parameterTom Kadwill2014-08-221-0/+12
| | |
| * | Merge pull request #16204 from jonatack/patch-7Vijay Dev2014-08-211-12/+14
| |\ \ | | | | | | | | Fix minor typos and improve grammar and code formatting
| | * | Grammar passJon Atack2014-08-191-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | [ci skip] Add improvements from @eileencodes [skip ci]
| * | | [ci skip] Added documentation for has_one scope parameterTom Kadwill2014-08-211-0/+11
| | |/ | |/|
| * | "warning: assigned but unused variable"Akira Matsuda2014-08-211-1/+1
| | |
| * | Merge pull request #16593 from aditya-kapoor/add-doc-for-stepZachary Scott2014-08-201-3/+6
| |\ \ | | | | | | | | [ci skip] add doc for STEP in migration
| | * | [ci skip] add doc for STEP in migrationAditya Kapoor2014-08-211-3/+6
| | | |
| * | | Merge pull request #16575 from tomkadwill/added_has_many_scope_documentationZachary Scott2014-08-201-0/+11
| |\ \ \ | | |/ / | |/| | [ci skip] Added documentation for has_many scope parameter
| | * | [ci skip] Added documentation for has_many scope parameterTom Kadwill2014-08-201-0/+11
| | | |
| * | | [ci skip] correct docs about the migration generationAditya Kapoor2014-08-211-9/+2
| | | |
| * | | Merge pull request #16172 from Agis-/hmt_scope_arityRafael Mendonça França2014-08-206-1/+29
| |\ \ \ | | | | | | | | | | has_many :through with dynamic condition merging
| | * | | Only merge scopes with zero arity in has_many throughAgis-2014-08-206-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | Merge pull request #16145 from phoet/patch-2Rafael Mendonça França2014-08-202-10/+15
| |\ \ \ \ | | | | | | | | | | | | don't log errors when all is fine
| | * | | | don't log errors when all is finePeter Schröder2014-07-172-10/+15
| | | | | |
| * | | | | Ignore Postgresql "SELECT tablename FROM pg_tables" when counting queriesAkira Matsuda2014-08-201-1/+1
| | |_|/ / | |/| | |
| * | | | [ci skip] "..enables interrorgating of [thing].." would be correctZachary Scott2014-08-191-1/+1
| | | | |
| * | | | Drop schema_migrations table only when existsAkira Matsuda2014-08-201-1/+1
| | |/ / | |/| |
* / | | Preparing for 4.2.0.beta1 releaseDavid Heinemeier Hansson2014-08-191-1/+1
|/ / /
* | | Merge pull request #16475 from tomkadwill/has_many_scope_documentationZachary Scott2014-08-191-0/+11
|\ \ \ | | | | | | | | [ci skip] Added documentation for belongs_to scope parameter