aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
...
* Added option to Base.reflection_of_all_associations to specify a specific ↵David Heinemeier Hansson2005-12-273-3/+13
| | | | | | association to scope the call. For example Base.reflection_of_all_associations(:has_many) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3357 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActiveRecord::Base.schema_ignore_tables => ↵Tobias Lütke2005-12-245-12/+12
| | | | | | ActiveRecord::SchemaDumper.ignore_tables git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* SchemaDumper now doesn't fail anymore when there are unknown column types in ↵Tobias Lütke2005-12-245-19/+82
| | | | | | the schema. Instead the table is ignored and a Comment is left in the schema.rb also added ActiveRecord::Base.schema_ignore_tables for dealing with funky tables like the tesearch2 ones. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Better language for the CHANGELOG entry of previous commit.Florian Weber2005-12-211-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that saving a model with multiple habtm associations, would only save ↵Florian Weber2005-12-213-4/+19
| | | | | | the first habtm association. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix form_for use of datetime_select and date_select as well as a few ↵David Heinemeier Hansson2005-12-211-3/+4
| | | | | | stylistic upgrades to AR git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Oops, I killed Tobi's changelog entries.Scott Barron2005-12-201-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix change_column to work with postgres 7.x and 8.x.Scott Barron2005-12-203-11/+22
| | | | | | | Closes #3141 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* removed :piggyback in favor of just allowing :select on :through associationsTobias Lütke2005-12-204-7/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* made .find() and class method delegation work on :through relationsTobias Lütke2005-12-204-4/+57
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* DRY up PG's add_column a bit to use change_column_default and match the otherScott Barron2005-12-201-9/+3
| | | | | | | methods. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* added :piggyback option to has_many :through relationships to pick up values ↵Tobias Lütke2005-12-205-3/+17
| | | | | | from the join table as needed git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Check for the key instead of the value, because it (the value) can be false.Scott Barron2005-12-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3322 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typo in association docs. Closes #3296.Marcel Molina2005-12-202-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed :through relations when using STI inherited classes would use the ↵Tobias Lütke2005-12-167-4/+39
| | | | | | inherited class's name as foreign key on the join model git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Roll back [3244]. References #3116.Jeremy Kemper2005-12-132-3/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3294 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: allow encoding option for mysql.rb driver.Jeremy Kemper2005-12-132-5/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option inheritance for find calls on has_and_belongs_to_many and ↵David Heinemeier Hansson2005-12-139-24/+73
| | | | | | | | has_many assosociations [DHH] Added option to specify :group, :limit, :offset, and :select options from find on has_and_belongs_to_many and has_many assosociations [DHH] Added form_remote_for (form_for meets form_remote_tag) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3287 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added tests for join models and fixed a bug #3177David Heinemeier Hansson2005-12-116-3/+29
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: fixes for the bundled mysql.rb driver. References #3160.Jeremy Kemper2005-12-102-8/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3274 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* SQLServer: fix obscure optimistic locking bug, support uniqueidentifier ↵Jeremy Kemper2005-12-102-4/+18
| | | | | | columns, cope with tables names qualified by owner, cope with columns with desc in the name, cope with primary keys with select in the name. Closes #3068, #2930, #3067, #1950, #3057, #3162. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3270 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: ensure that @config is set.Jeremy Kemper2005-12-091-3/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix bundled mysql.rb to correctly check for PROTO_41. Fixed scramble41 with ↵Jeremy Kemper2005-12-091-43/+37
| | | | | | nil password. Fixed change_user with PROTO_41. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3260 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix some test failures due to MySQL assumptions. Closes #3149.Jeremy Kemper2005-12-082-6/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Oracle: active? performs a select instead of a commit. References #3133.Jeremy Kemper2005-12-082-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove insignificant classes from docsDavid Heinemeier Hansson2005-12-081-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: more robust test for nullified result hashes. References #3124.Jeremy Kemper2005-12-082-8/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3246 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* SQLite: find database file when RAILS_ROOT is a symlink. References #3116.Jeremy Kemper2005-12-082-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reloading an instance refreshes its aggregations as well as its ↵Jeremy Kemper2005-12-085-0/+32
| | | | | | associations. References #3024. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that using :include together with :conditions array in Base.find would ↵David Heinemeier Hansson2005-12-083-3/+30
| | | | | | cause NoMethodError (closes #2887) [Paul Hammmond] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* PostgreSQL: more robust sequence name discovery. References #3087.Jeremy Kemper2005-12-083-5/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Oracle: use syntax compatible with Oracle 8. References #3131.Jeremy Kemper2005-12-082-6/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed RDoc warnings [DHH]David Heinemeier Hansson2005-12-081-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix has_many :throughDavid Heinemeier Hansson2005-12-071-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont overwrite the documentation from the real base classDavid Heinemeier Hansson2005-12-051-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clear the connection cache entry when a new connection is established on the ↵Jeremy Kemper2005-12-052-21/+24
| | | | | | same class. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3222 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clear connection cache after rolling back transaction.Jeremy Kemper2005-12-051-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move dummy active? and reconnect! from sqlite to base adapter. References #428.Jeremy Kemper2005-12-042-13/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Connection cache to speed up retrieve_connection and get rid of dirty ↵Jeremy Kemper2005-12-044-36/+12
| | | | | | connection marking. References #428. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't use transactional fixtures for when DDL changes are involved.Jeremy Kemper2005-12-042-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: work around ruby-mysql/mysql-ruby inconsistency with mysql.stat. ↵Jeremy Kemper2005-12-032-7/+11
| | | | | | Eliminate usage of mysql.ping because it doesn't guarantee reconnect. Explicitly close and reopen the connection instead. References #428. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added preliminary support for join models [DHH] Added preliminary support ↵David Heinemeier Hansson2005-12-0317-446/+520
| | | | | | for polymorphic associations [DHH] Refactored associations to use reflections to get DRYer, beware, major refactoring -- double check before deploying anything with this (all tests pass, but..) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Work-in progress for providing better join model support and polymorphic ↵David Heinemeier Hansson2005-12-0213-44/+194
| | | | | | associations git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow validate_uniqueness_of to be scoped by more than just one column. ↵Marcel Molina2005-12-023-5/+41
| | | | | | Closes #1559. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Firebird: active? and reconnect! methods for handling stale connections. ↵Jeremy Kemper2005-12-022-2/+25
| | | | | | References #428. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Firebird: updated for FireRuby 0.4.0. References #3009.Jeremy Kemper2005-12-022-67/+37
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* PostgreSQL: active? compatibility with the pure-Ruby driver. Still need to ↵Jeremy Kemper2005-11-282-3/+5
| | | | | | move connect into the adapter since postgres-pr doesn't support #reset. References #428. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: active? compatibility with the pure-Ruby driver. References #428.Jeremy Kemper2005-11-282-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3194 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Oracle: active? check pings the database rather than testing the last ↵Jeremy Kemper2005-11-242-17/+17
| | | | | | command status. References #428. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Credit everybody that helped =)Florian Weber2005-11-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de