aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
...
* Add docs explaining how to protect all attributes using attr_accessible with ↵Marcel Molina2007-10-262-1/+19
| | | | | | no arguments. Closes #9631 [boone, rmm5t] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update add_index documentation to use new options api. Closes #9787 [kamal]Marcel Molina2007-10-262-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8031 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow find on a has_many association defined with :finder_sql to accept id ↵Marcel Molina2007-10-265-3/+22
| | | | | | arguments as strings like regular find does. Closes #9916 [krishna] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use VALID_FIND_OPTIONS when resolving :find scoping rather than hard coding ↵Marcel Molina2007-10-262-1/+3
| | | | | | the list of valid find options. Closes #9443 [sur] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8025 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove superfluous code and quote table name. References #9971 [jkit, nzkoz]Michael Koziarski2007-10-251-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make clear_reloadable_connections! take account of @@allow_concurrency. ↵Michael Koziarski2007-10-251-4/+17
| | | | | | Closes #7579 [wilson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8014 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure that the Schema Dumper supports non-standard primary keys with ↵Michael Koziarski2007-10-252-0/+17
| | | | | | MySQL. Closes #9971 [RubyRedRick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Limited eager loading no longer ignores scoped :order. Closes #9561 [danger, ↵Marcel Molina2007-10-233-6/+15
| | | | | | josh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Assigning an instance of a foreign class to a composed_of aggregate calls an ↵Jeremy Kemper2007-10-233-39/+30
| | | | | | optional conversion block. Refactor and simplify composed_of implementation. Closes #6322. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Assigning nil to a composed_of aggregate also sets its immediate value to ↵Jeremy Kemper2007-10-233-2/+19
| | | | | | nil. Closes #9843. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* validates_uniqueness_of behaves well with abstract superclasses. References ↵Jeremy Kemper2007-10-234-2/+68
| | | | | | #3833, closes #9886. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8000 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reinstate test_change_column_nullability for all adapters. Closes #9945 ↵Jeremy Kemper2007-10-221-2/+1
| | | | | | [lawrence] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* test_select_rows shouldn't depend on implicit result ordering. Closes #9898 ↵Jeremy Kemper2007-10-221-2/+2
| | | | | | [lawrence] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7995 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that mysql quotes table names with database names correctly. Closes ↵Rick Olson2007-10-203-1/+9
| | | | | | #9911 [crayz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* typo in test nameMichael Koziarski2007-10-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Few more tests for Sexy MigrationsMichael Koziarski2007-10-191-0/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Forgotten changelog entryMichael Koziarski2007-10-191-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add t.belongs_to and t.references to sexy migrations [arthurgeek]Michael Koziarski2007-10-192-1/+66
| | | | | | | | Test harness for Sexy Migrations. [Koz] Closes #9775 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move all Schema creation into schema.rb for Mysql. Closes #9899 [mikong, ↵Michael Koziarski2007-10-198-283/+231
| | | | | | lawrence] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* SQL Server: test for affected row count. References #9558 [lawrence, ryepup]Jeremy Kemper2007-10-181-25/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Read in binary mode to make sure windows support keeps working. [lawrence] ↵Michael Koziarski2007-10-171-1/+1
| | | | | | Closes #9912 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use a smaller binary fixture so we don't overflow column size limitations in ↵Michael Koziarski2007-10-172-435/+130
| | | | | | some commercial / legacy databases. Closes #7987 [roderickvd, lawrence] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Raise an intelligible error message when migration aren't named correctly ↵Michael Koziarski2007-10-171-1/+9
| | | | | | [bronson] Closes #9909 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7957 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Qualified column names work in hash conditions, like :conditions => { ↵Jeremy Kemper2007-10-163-1/+20
| | | | | | 'comments.created_at' => ... }. Closes #9733. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7943 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix regression where the association would not construct new finder SQL on ↵Jeremy Kemper2007-10-163-4/+16
| | | | | | save causing bogus queries for "WHERE owner_id = NULL" even after owner was saved. Closes #8713. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7942 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor association create and build so before & after callbacks behave ↵Jeremy Kemper2007-10-168-45/+94
| | | | | | consistently. Closes #8854. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7935 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Quote table names. Defaults to column quoting. Closes #4593.Jeremy Kemper2007-10-1615-46/+283
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix join table docs error in schema_statements. Closes #9880 [lawrence]Jeremy Kemper2007-10-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7931 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moving SQL Server tests to the extracted adapter. References #9884.Jeremy Kemper2007-10-168-340/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7930 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Alias association #build to #new so it behaves predictably. Closes #8787.Jeremy Kemper2007-10-153-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert [7894] and apply to adapter instead. References #9588.Jeremy Kemper2007-10-151-31/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Test that change_column quotes column names. Closes #9537 [lawrence]Jeremy Kemper2007-10-151-1/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7909 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Factor out checks for duplicable objects. Closes #9333.Jeremy Kemper2007-10-152-12/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7908 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Json related documentation for render and the AR serializer. Closes ↵Michael Koziarski2007-10-151-0/+53
| | | | | | #9814. Closes #9833. [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove seemingly misleading 'faster tests' instructions tooMichael Koziarski2007-10-151-11/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update the instructions for running tests.Michael Koziarski2007-10-151-23/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Uncomment test for join model method_missing. Closes #8707 [Giles Bowkett, ↵Jeremy Kemper2007-10-151-2/+2
| | | | | | Josh Peek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update test/all.shJeremy Kemper2007-10-151-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7896 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update IGNORED_SQL for SQL Server. Closes #9638 [lawrence]Jeremy Kemper2007-10-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7895 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add build/drop/rebuild tasks for SQL Server. Closes #9588 [lawrence]Jeremy Kemper2007-10-151-2/+33
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7894 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add explicit test taskJeremy Kemper2007-10-151-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7889 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add notes to documentation regarding attr_readonly behavior with counter ↵Rick Olson2007-10-142-0/+5
| | | | | | caches and polymorphic associations. Closes #9835 [saimonmoore, rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7873 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Observers can observe model names as symbols properly now. Closes #9869 ↵Rick Olson2007-10-143-2/+5
| | | | | | [queso] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update versions here tooDavid Heinemeier Hansson2007-10-122-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7843 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* eval with __FILE__ and __LINE__Jeremy Kemper2007-10-102-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* find_and_(initialize|create)_by methods can now properly initialize ↵Tobias Lütke2007-10-104-7/+35
| | | | | | protected attributes git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that 'autosaving' works when associations aren't loaded [Bryan ↵Michael Koziarski2007-10-104-6/+28
| | | | | | Helmkamp] References #8713 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update :dependent docs and improve its argument error message.Jeremy Kemper2007-10-091-34/+32
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7813 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* belongs_to infers the foreign key from the association name instead of from ↵Jeremy Kemper2007-10-082-1/+3
| | | | | | the class name. Fulfills the 1.2.4 deprecation. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure AR::Base#clone handles attr changes made in after_initialize ↵Michael Koziarski2007-10-083-4/+14
| | | | | | hooks. Closes #7191 [weyus] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7802 5ecf4fe2-1ee6-0310-87b1-e25e094e27de