- 10 7月, 2011 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 09 7月, 2011 6 次提交
-
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
having raises NoMethodError: undefined method `empty?' when a Fixnum or Date/Time were passed via varargs
-
由 Jon Leighton 提交于
-
-
由 Tomas D'Stefano 提交于
-
由 Jon Leighton 提交于
Ensure that the foreign key gets set when doing record.create_association or record.create_association. Fixes #1960.
-
- 08 7月, 2011 8 次提交
-
-
由 Daniel Schierbeck 提交于
Move the private method #extract_schema_and_table into a separate Utils module so that it can be tested without resorting to #send.
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
- 07 7月, 2011 6 次提交
-
-
由 Dmitriy Kiriyenko 提交于
-
由 knapo 提交于
This caused that `find_each` was producing extra db call taking all the records from db, and was less efficient than `ActiveRecord::Base#all`.
-
由 Jon Leighton 提交于
Don't construct association scope in initializer. This yields a big performance gain for cases where the association is never used to load the target, for example with preloading. Related: #1873.
-
由 Simon Baird 提交于
See new method mysql_creation_options. It is used by both create_database and recreate_database so they are consistent. (Cherry pick of 3ba3125b)
-
由 Anatoliy Lysenko 提交于
when condtions references tables from includes. Test fail because of invalid sql: ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: comments.id: SELECT "posts".id FROM "posts" INNER JOIN "readers" ON "posts"."id" = "readers"."post_id" WHERE "readers"."person_id" = 1 AND (comments.id is null) Bug described in github#925 This commit will revert fix from https://github.com/rails/rails/commit/3436fdfc12d58925e3d981e0afa61084ea34736c , but tests is ok. Bug described in #6569 ticket.
-
由 Ernie Miller 提交于
-
- 05 7月, 2011 3 次提交
-
-
由 Bogdan Gusiev 提交于
In order make Relation behavior closer to Array Made Relation#sum to accept block and delegate it to Array#sum
-
由 Bogdan Gusiev 提交于
In order to make CollectionAssociation behave closer to Array Add the ability to pass block to #find method just like Array#find does.
-
由 Dieter Komendera 提交于
-
- 04 7月, 2011 1 次提交
-
-
由 Andrew White 提交于
-
- 03 7月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
The changes broke bulk migration tests and were fixed in 4d256bc6; however that brought back the issue of #1857 and so this commit goes back to the original scenario and just adds change_table to the list of methods which are to be recorded in the CommandRecorder. The method_missing now delegates all calls to the underlying connection as before.
-
- 02 7月, 2011 6 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Ray Baxter 提交于
-
由 Aaron Patterson 提交于
- 01 7月, 2011 8 次提交
-
-
由 Gabriel Sobrinho 提交于
-
由 Jon Leighton 提交于
Remove AssociationReflection#create_association and AssociationReflection#create_association! - they are not called from anywhere.
-
由 Jon Leighton 提交于
Assign the association attributes to the associated record before the before_initialize callback of the record runs. Fixes #1842.
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-