aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add timestamps to TopicPratik Naik2010-11-021-0/+1
| |
* | Merge branch 'master' into nested_has_many_throughJon Leighton2010-10-281-52/+61
|\| | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/test/schema/schema.rb
| * made a pass in AR's schema.rb to keep (most) create statements in ↵Xavier Noria2010-10-221-59/+60
| | | | | | | | lexicographic order, and fixed an FK
| * has_one maintains the association with separate after_create/after_updateXavier Noria2010-10-221-0/+8
| | | | | | | | | | This way parent models can get their own after_create and after_update callbacks fired after has_one has done its job.
* | Support the :primary_key option on a through reflection in a nested through ↵Jon Leighton2010-10-191-0/+2
| | | | | | | | association
* | Support for :primary_key option on the source reflection of a through ↵Jon Leighton2010-10-191-2/+3
| | | | | | | | association, where the source is a has_one or has_many
* | Respect the :primary_key option on the through_reflection of (non-nested) ↵Jon Leighton2010-10-191-0/+2
| | | | | | | | through associations
* | Properly support conditions on any of the reflections involved in a nested ↵Jon Leighton2010-10-191-0/+1
| | | | | | | | through association
* | Add test_has_one_through_has_one_through_with_belongs_to_source_reflectionJon Leighton2010-10-141-0/+1
| |
* | Add support for nested through associations in JoinAssociation. Hence ↵Jon Leighton2010-10-091-0/+5
| | | | | | | | Foo.joins(:bar) will work for through associations. There is some duplicated code now, which will be refactored.
* | Initial nested_has_many_through support [#1152]Bodaniel Jeanes2010-09-261-0/+1
|/
* A few schema changes for the SQL Server adapter.Ken Collins2010-09-031-3/+3
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* While creating a new record using has_many create method default scope of ↵Neeraj Singh2010-08-191-0/+5
| | | | | | | | | | | child should be respected. author.posts.create should take into account default_scope defined on post. [#3939: state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Bug Fix -- clean up connection after stored procedure [#3151 state:resolved]Jeff Lawson2010-08-171-0/+11
|
* Both tests are using the same model, move the model to another file and add ↵Santiago Pastorino2010-08-141-1/+1
| | | | the missing require
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-142-4/+4
| | | | 's/[ \t]*$//' -i {} \;)
* Ensure we can nest include calls [#5285 state:resolved]Neeraj Singh2010-08-121-0/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge branch 'master' into mysql2Brian Lopez2010-08-021-0/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Bring returning back to ease migration. Remove duplicated logic. Eager loading an association should not change the count of children fix loading of different elements in array then int and string [#5036 state:resolved] Tidy up previous commit. test and fix collection_singular_ids= with string primary keys [#5125 state:resolved] Handle edge cases in the previous patch. Improved how AppGenerator generates the application name. It now detects the current app name whenever possible. This means that renaming the residing directory will not effect the app name generated by AppGenerator. ActiveModel::Errors json serialization to work as Rails 3b4 [#5254 state:resolved] Add missing require in ActiveSupport::HashWithIndifferentAccess [#5189 state:resolved] Add an internal (private API) after_touch callback. [#5271 state:resolved] added failing touch propagation test Makes rails destroy scaffold don't duplicate routes.draw do |map| |map| when using the deprecated syntax Failing test to check for route file corruption if legacy map parameter is used. [#5263 state:open] Corrected the rake test:units and test:functionals description [#5251 state:committed] Use AS::OrderedHash when trusting in the order of the hash Fix label form helper to use I18n and html options, without the need of 'nil' text param:
| * Eager loading an association should not change the count of childrenNeeraj Singh2010-08-021-0/+13
| | | | | | | | | | | | [#4971 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * added failing touch propagation testJakub Kuźma2010-08-021-0/+2
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | update tests for mysql2 supportBrian Lopez2010-08-021-0/+24
|/
* update_attribute should not update readonly attributesNeeraj Singh2010-07-211-0/+1
| | | | | | [#5106 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Timestamp columns of HABTM join table should record timestampsNeeraj Singh2010-07-211-0/+2
| | | | [#5161 state:resolved]
* Ensure that primary_keys of HABTM records is not double quotedNeeraj Singh2010-07-201-0/+13
| | | | [#5152 state:reslved]
* string IDs are now quoted correctly [#5064 state:resolved]Will St. Clair + Neeraj Singh2010-07-131-0/+17
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* reset_counter should work with non-traditional belongs_to and polymorphic ↵Neeraj Singh2010-07-081-0/+13
| | | | | | | | belongs_to [#4984 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* adding column named 'group' to ensure that nothing breaks given that 'group' ↵Neeraj Singh2010-06-231-0/+1
| | | | | | | | is sql reserved word [#4945 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Support fixtures for namespaced models [#2965 state:resolved]Andrew White2010-04-251-0/+9
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Refactor compute_type to handle situations where the correct class is ↵Andrew White2010-04-121-0/+14
| | | | | | already loaded Signed-off-by: wycats <wycats@gmail.com>
* PostgreSQLAdapter: set time_zone to UTC when Base.default_timezone == :utc ↵Jack Christensen2010-01-251-1/+8
| | | | so that Postgres doesn't incorrectly offset-adjust values inserted into TIMESTAMP WITH TIME ZONE columns [#3777 state:resolved]
* Add failing test that triggers the stack overflowBryan Stearns2010-01-081-0/+10
|
* Add inverse polymorphic association support. [#3520 state:resolved]George Ogata2009-12-281-0/+4
| | | | Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Revert "Revert "Assert primary key does not exist in habtm when the ↵Jeremy Kemper2009-11-231-1/+1
| | | | | | | | | | | | | association is defined, instead of doing that everytime a record is inserted."" This reverts commit 2b82708b0efb3a3458e8177beab58f0c585788ae. [#3128 state:resolved] Conflicts: activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
* Enable use of MySQL stored procedures by default.Justin Bailey2009-09-171-0/+12
| | | | | | [#3204 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix has_one with foreign_key and primary_key association bug which caused ↵Graeme Porteous2009-09-121-0/+1
| | | | | | | | the associated object being lost when saving the owner. [#1756 state:resolved] Mixed in a bit from patch by ransom-briggs. [#2813 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Revert "Assert primary key does not exist in habtm when the association is ↵Jeremy Kemper2009-09-021-1/+1
| | | | | | | | | | defined, instead of doing that everytime a record is inserted." Test failures on PostgreSQL. [#3128 state:open] This reverts commit da636809daca9c338200811d3590e446f57c8e81.
* Assert primary key does not exist in habtm when the association is defined, ↵José Valim2009-09-011-1/+1
| | | | | | | | instead of doing that everytime a record is inserted. [#3128 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* PostgreSQL: XML datatype supportLeonardo Borges2009-08-091-2/+13
| | | | | | [#1874 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* has_many :through create should not raise validation errorsrailsbob2009-08-091-0/+4
| | | | | | [#2934 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* fix schema_dumper_test for Oracle as it supports precision up to 38Raimonds Simanovskis2009-08-061-1/+6
|
* added additional objects necessary for OracleAdapter specific testsRaimonds Simanovskis2009-08-062-3/+48
| | | | | if OracleAdapter is used then use VARCHAR2(4000) instead of CLOB datatype as CLOB data type has many limitations in Oracle SELECT WHERE clause which causes many unit test failures
* Add simple support for ActiveModel's StateMachine for ActiveRecordJoshua Peek2009-08-041-0/+7
|
* Add primary_key option to belongs_to associationSzymon Nowak2009-07-151-0/+7
| | | | | | [#765 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ensure hm:t#create respects source associations hash conditions [#2090 ↵mattbauer2009-06-211-0/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* disabled base_test.rb tests that were not Oracle compatible (TIME datatype ↵Raimonds Simanovskis2009-06-091-0/+19
| | | | | | is not supported on Oracle, UPDATE does not support ORDER BY) _before_type_cast on Oracle returns Time and not String added Oracle specific schema definition that was missing for test_default_values test Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Schema dumper now records scale 0 decimal columns as decimal not integer.Giles Alexander2009-06-011-0/+1
| | | | | | | | | | The schema dumper would dump out any decimal or numeric column that had a zero scale as an integer column. This will cause problems for very large precision columns on some DBMSs, particularly PostgreSQL. It also looks strange to see your column change type after moving through schema.rb. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2741 state:committed]
* Fixed limited eager loading associations with numbers in the name [#2668 ↵Benjamin Floering2009-05-181-0/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* replace the aaa_create_tables_test hack with loading test database schema in ↵Mislav Marohnić2009-05-172-7/+4
| | | | | | the test helper [#2663 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Revert "Fixed bug with polymorphic has_one :as pointing to an STI record"Jeremy Kemper2009-05-111-2/+1
| | | | | | [#2594 state:open] This reverts commit 99c103be1165da9c8299bc0977188ecf167e06a5.
* Allow you to pass :all_blank to :reject_if option to automatically create a ↵Mike Breen2009-05-101-0/+1
| | | | Proc that will reject any record with blank attributes.