Tobias Lütke
|
2dc16df10c
|
give helpful error messages when fixtures accessed style table_name(:name) cannot be found [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3480 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-25 02:40:25 +00:00 |
|
David Heinemeier Hansson
|
c3cfc2636b
|
AR should run schema.rb for tests when building test DBs (closes #3578) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-23 05:29:17 +00:00 |
|
Marcel Molina
|
554aa2e1e9
|
Add explicit :order in finder tests as postgresql orders results differently by default. Closes #3577.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-22 20:55:14 +00:00 |
|
Marcel Molina
|
297618bddc
|
Make dynamic finders honor additional passed in :conditions. Closes #3569.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3463 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-22 09:34:41 +00:00 |
|
Nicholas Seckar
|
cffd1a9c3a
|
Show a meaningful error when the DB2 adapter cannot be loaded due to missing dependencies.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3460 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-22 06:28:49 +00:00 |
|
David Heinemeier Hansson
|
1facce6c24
|
allow has_many :through to work with custom :foreign key (closes #3422) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3456 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-21 23:40:20 +00:00 |
|
David Heinemeier Hansson
|
6a2104d792
|
Added assert_date_from_db to do cleaner tests for SQL Server (closes #3557) [Tom Ward]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3452 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-21 23:20:00 +00:00 |
|
Michael Koziarski
|
8fe6b90e5f
|
Fix .count for has_many associations with multi-line finder-sql. Closes #3540
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3450 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-21 07:53:45 +00:00 |
|
Jamis Buck
|
f9c13e6134
|
Add a test to verify correct behavior when creating a polymorphic association
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-20 21:51:48 +00:00 |
|
Jamis Buck
|
d2f47503f8
|
Add AR::Base.base_class for querying the ancestor AR::Base subclass [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-20 20:43:40 +00:00 |
|
Michael Koziarski
|
a471e6b4d7
|
allow the 'lock_version' column to be configured with set_locking_column. Closes #3402
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-14 09:36:52 +00:00 |
|
Michael Koziarski
|
62d749ab0e
|
Don't hardcode id in acts_as_list. Closes #3370
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-14 09:26:14 +00:00 |
|
Michael Koziarski
|
6258829ebf
|
Fix test error caused by operator error with last commit
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3418 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-14 08:43:27 +00:00 |
|
Michael Koziarski
|
f41feb349c
|
Don't alter the Hash passed to attributes=, closes #3385
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-14 08:26:20 +00:00 |
|
Marcel Molina
|
b98684c3e1
|
Fix date errors for SQLServer in association tests. Closes #3406.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-13 02:04:34 +00:00 |
|
Marcel Molina
|
1e2b3d8b5a
|
Escape database name in MySQL adapter when creating and dropping databases. Closes #3409.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-13 01:58:11 +00:00 |
|
Marcel Molina
|
f1a01c80db
|
Disambiguate table names for columns in validates_uniquness_of's WHERE clause. Closes #3423.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3402 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-13 01:51:45 +00:00 |
|
Tobias Lütke
|
16718e3e21
|
Fixed that .with_scope imposed create parameters bypass attr_protected
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3393 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-10 22:15:49 +00:00 |
|
David Heinemeier Hansson
|
7dd2d38b9a
|
Fix doc bug
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-09 04:43:27 +00:00 |
|
Marcel Molina
|
945dd920ab
|
Don't raise an exception when there are more keys than there are named bind variables when sanitizing conditions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-05 21:40:15 +00:00 |
|
Marcel Molina
|
a5708b4c1f
|
Multiple enhancements and adjustments to DB2 adaptor. Closes #3377.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-04 04:17:23 +00:00 |
|
Marcel Molina
|
bbec3ae512
|
Sanitize scoped conditions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-04 03:43:28 +00:00 |
|
David Heinemeier Hansson
|
d7487fffe5
|
Made Field.focus in prototype friendly to effects by adding optional delay parameter [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-31 04:14:07 +00:00 |
|
David Heinemeier Hansson
|
b5ba377b78
|
Added option to Base.reflection_of_all_associations to specify a specific 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
|
2005-12-27 05:41:23 +00:00 |
|
Tobias Lütke
|
d4e02f755d
|
ActiveRecord::Base.schema_ignore_tables => ActiveRecord::SchemaDumper.ignore_tables
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-24 17:31:26 +00:00 |
|
Tobias Lütke
|
87535f50e9
|
SchemaDumper now doesn't fail anymore when there are unknown column types in 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
|
2005-12-24 16:55:55 +00:00 |
|
Florian Weber
|
ee1ef122d7
|
Better language for the CHANGELOG entry of previous commit.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-21 16:59:54 +00:00 |
|
Florian Weber
|
c6e01f5b60
|
Fixed that saving a model with multiple habtm associations, would only save the first habtm association.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-21 15:50:31 +00:00 |
|
David Heinemeier Hansson
|
43f6643b8b
|
Fix form_for use of datetime_select and date_select as well as a few stylistic upgrades to AR
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-21 06:16:42 +00:00 |
|
Scott Barron
|
b05f0c8e49
|
Oops, I killed Tobi's changelog entries.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-20 23:14:56 +00:00 |
|
Scott Barron
|
88bb279df7
|
Fix change_column to work with postgres 7.x and 8.x.
Closes #3141
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-20 21:43:47 +00:00 |
|
Tobias Lütke
|
581f12b7b1
|
removed :piggyback in favor of just allowing :select on :through associations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-20 21:26:27 +00:00 |
|
Tobias Lütke
|
90099e9dc2
|
made .find() and class method delegation work on :through relations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-20 21:20:35 +00:00 |
|
Scott Barron
|
d5441b2d50
|
DRY up PG's add_column a bit to use change_column_default and match the other
methods.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-20 20:37:19 +00:00 |
|
Tobias Lütke
|
1d2c6ee8f3
|
added :piggyback option to has_many :through relationships to pick up values from the join table as needed
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-20 20:32:47 +00:00 |
|
Scott Barron
|
1235d26bfb
|
Check for the key instead of the value, because it (the value) can be false.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3322 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-20 20:24:19 +00:00 |
|
Marcel Molina
|
3c01e01ded
|
Fix typo in association docs. Closes #3296.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-20 03:26:17 +00:00 |
|
Tobias Lütke
|
5f06c483ca
|
Fixed :through relations when using STI inherited classes would use the 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
|
2005-12-16 23:24:58 +00:00 |
|
Jeremy Kemper
|
4ac2593e4e
|
Roll back [3244]. References #3116.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3294 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-13 17:32:39 +00:00 |
|
Jeremy Kemper
|
224d47e0a3
|
MySQL: allow encoding option for mysql.rb driver.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-13 16:45:58 +00:00 |
|
David Heinemeier Hansson
|
e5d9ad3e29
|
Added option inheritance for find calls on has_and_belongs_to_many and 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
|
2005-12-13 00:39:51 +00:00 |
|
David Heinemeier Hansson
|
6427db6baa
|
Added tests for join models and fixed a bug #3177
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-11 18:06:51 +00:00 |
|
Jeremy Kemper
|
809dd8e87e
|
MySQL: fixes for the bundled mysql.rb driver. References #3160.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3274 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-10 21:38:28 +00:00 |
|
Jeremy Kemper
|
42576fffe2
|
SQLServer: fix obscure optimistic locking bug, support uniqueidentifier 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
|
2005-12-10 00:52:41 +00:00 |
|
Jeremy Kemper
|
39b71bb8a1
|
MySQL: ensure that @config is set.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-09 23:20:20 +00:00 |
|
Jeremy Kemper
|
a40b6fd034
|
Fix bundled mysql.rb to correctly check for PROTO_41. Fixed scramble41 with nil password. Fixed change_user with PROTO_41.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3260 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-09 22:59:54 +00:00 |
|
Jeremy Kemper
|
dc106b932c
|
Fix some test failures due to MySQL assumptions. Closes #3149.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-08 23:23:34 +00:00 |
|
Jeremy Kemper
|
57838bd4c6
|
Oracle: active? performs a select instead of a commit. References #3133.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-08 07:27:48 +00:00 |
|
David Heinemeier Hansson
|
32b27f997b
|
Remove insignificant classes from docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-08 05:43:54 +00:00 |
|
Jeremy Kemper
|
cf54a71352
|
MySQL: more robust test for nullified result hashes. References #3124.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3246 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-08 05:07:45 +00:00 |
|