Alex Pooley
|
504d16ccdf
|
Add microsecond support for sqlite adapter [#1982 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-04-21 18:05:07 +01:00 |
|
Pratik Naik
|
2e6d1bf43e
|
Change table to prevent copying indexes on sqlite2
|
2009-04-21 13:28:49 +01:00 |
|
Pratik Naik
|
2381f6f3dc
|
Specify :group with the table name for it to work on sqlite3
|
2009-04-21 13:11:56 +01:00 |
|
Pratik Naik
|
6513dde490
|
Fix tests for sqlite3 3.6.xx
|
2009-04-21 13:06:26 +01:00 |
|
Max Lapshin
|
f3ac4f387d
|
Fixed dumping from postgresql columns in index in wrong order. [#2515 state:resolved]
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
|
2009-04-21 11:44:13 +01:00 |
|
Scott Woods
|
64b33b6cf9
|
Quote table names when casting to regclass so that capitalized tables are supported. [#2418 state:resolved]
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
|
2009-04-21 11:43:38 +01:00 |
|
Max Lapshin
|
cdcd638c2f
|
Fixed wrong quoting of index names in postgres [#2402 state:resolved]
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
|
2009-04-21 11:42:40 +01:00 |
|
Pratik Naik
|
de0ea38663
|
Ensure :dependent => :delete_all works for association with hash conditions
|
2009-04-20 18:12:40 +01:00 |
|
Pratik Naik
|
489abfd3b2
|
Ensure JoinAssociation uses aliased table name when multiple associations have hash conditions on the same table
|
2009-04-20 13:51:11 +01:00 |
|
David Heinemeier Hansson
|
abb899c54e
|
Added :touch option to belongs_to associations that will touch the parent record when the current record is saved or destroyed [DHH]
|
2009-04-16 17:25:55 -05:00 |
|
David Heinemeier Hansson
|
fdb61f02c5
|
Added ActiveRecord::Base#touch to update the updated_at/on attributes with the current time [DHH]
|
2009-04-16 16:48:37 -05:00 |
|
Max Lapshin
|
70de8e64e3
|
Support multiple schemas in table names for postgresql [#390 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-04-05 12:36:36 +01:00 |
|
Jason King
|
ac3848201d
|
SQLite adapters now support DDL transactions [#2080 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-14 12:58:42 +00:00 |
|
Luca Guidi
|
47bdf3bf40
|
Ensure AutosaveAssociation runs remove callbacks [#2146 state:resolved]
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-12 15:24:37 +00:00 |
|
Elijah Miller
|
91b98cf0a5
|
Returning nil from named scope lambda is equivalent to an empty hash [#1773 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-12 15:06:19 +00:00 |
|
Murray Steele
|
db26ace030
|
Ensure NoMethodError isn't raised when some of the nested eager loaded associations are empty [#1696 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-12 13:49:16 +00:00 |
|
Will Bryant
|
92dadf6d79
|
Fixed autosave checks on objects with hm:t in :include [#2213 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-12 13:26:21 +00:00 |
|
Pratik Naik
|
106976df09
|
Ensure ActiveRecord::Base.find_in_batches fires doesnt fire an extra query unless needed
|
2009-03-11 15:24:30 +00:00 |
|
Pratik Naik
|
f23adf0ed4
|
Add tests for AssociationCollection#find_each and AssociationCollection#find_in_batches
|
2009-03-11 15:07:24 +00:00 |
|
Pratik Naik
|
0b6f514947
|
Add NamedScope#find_each tests [#2201 state:resolved]
|
2009-03-11 15:07:24 +00:00 |
|
Pratik Naik
|
04333482bd
|
Rename ActiveRecord::Base.each to ActiveRecord::Base.find_each
|
2009-03-11 15:07:23 +00:00 |
|
Jeremy Kemper
|
19ad375e7a
|
Don't duplicate :order from scope and options, it makes mysql do extra work
|
2009-03-10 23:11:05 -07:00 |
|
Manfred Stienstra
|
c3aa2bcdcf
|
Ensure nested with_scope merges conditions inside out [#2193 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-10 11:49:58 +00:00 |
|
Bruce Krysiak
|
8272630ce8
|
Ensure ActiveRecord#to_xml respects :skip_types for included associations [#1632 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-10 11:17:16 +00:00 |
|
Curtis Hawthorne
|
0d922885fb
|
Ensure Model#destroy respects optimistic locking [#1966 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-09 14:56:09 +00:00 |
|
Jim Remsik and Tim Pope
|
1e6c50e21b
|
Ensure has_many :through works with changed primary keys [#736 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-09 13:43:28 +00:00 |
|
Rob Anderton
|
faf4ba6b79
|
Allow find(:last) :order be a symbol [#2024 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-09 12:52:14 +00:00 |
|
Jan De Poorter
|
277c799d58
|
Fix find_by_last when order is given [#2127 state:committed]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
|
2009-03-09 13:02:31 +01:00 |
|
Jeremy Kemper
|
1c36172c13
|
Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.
[#1617 state:resolved]
|
2009-03-08 13:11:58 -07:00 |
|
Jeffrey Hardy
|
96eaeee446
|
Add ActiveRecord::Base#invalid? as the opposite of #valid? [#2159 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-08 15:20:23 +00:00 |
|
Pratik Naik
|
df8669d4b5
|
Fix calculation tests to work on sqlite
|
2009-03-07 16:36:40 +00:00 |
|
stopdropandrew
|
6543426c73
|
Ensure calculations respect scoped :select [#1334 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-07 15:26:56 +00:00 |
|
Arthur Klepchukov
|
ccb0a92fa2
|
Ensure validates_uniqueness_of considers limit on the field. [#1042 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-07 13:52:17 +00:00 |
|
Adam Milligan
|
f36513653f
|
Fix RDoc grammar and ensure hm:t tests can run in isolation. [#1644 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-07 12:34:56 +00:00 |
|
Pratik Naik
|
fd3ccbe955
|
DRY with_kcode in Active Record tests
|
2009-03-07 11:06:44 +00:00 |
|
Marcello Nuccio
|
dfcf1e4cf6
|
Fixed broken migrations tests: added assert_equal. [#1704 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-07 11:00:24 +00:00 |
|
Will Bryant
|
7fb7b48a1f
|
Allow :having conditions to be sanitized like regular :condition. [#2158 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-06 22:29:53 +00:00 |
|
Adam Cooper
|
3ca5a0f9fd
|
Ensure belongs_to association with a counter cache in name spaced model works [#1678 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-06 22:05:18 +00:00 |
|
Dimitri Krassovski
|
984bc7a614
|
Ensure replacing has_one associations respects the supplied :dependent option. [#1305 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-06 19:11:13 +00:00 |
|
Pratik Naik
|
4863634a15
|
Ensure supplie :from has precedence over scoped :from [#1370 state:resolved]
|
2009-03-06 18:36:30 +00:00 |
|
Tom Lea
|
c896d56c6e
|
Ensure self referential HABTM associations raise an exception if association_foreign_key is missing. [#1252 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-06 18:27:34 +00:00 |
|
jvoorhis
|
6a13376525
|
Methods invoked within named scope Procs should respect the scope stack. [#1267 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-06 16:47:50 +00:00 |
|
Mike Gunderloy
|
c653f700d3
|
Fix that scoped find with :group and :having [#2006 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-02-28 17:35:58 +00:00 |
|
Eloy Duran
|
e2b925fa68
|
Don't validate records of an :autosave association if they're marked for destruction. [#2064 status:resolved]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
|
2009-02-27 13:57:27 +01:00 |
|
David Heinemeier Hansson
|
5cda000bf0
|
Fixed that autosave should validate associations even if master is invalid [#1930 status:committed]
|
2009-02-27 13:50:24 +01:00 |
|
Manfred Stienstra
|
809409d92f
|
Add test case for ActiveRecord::ConnectionAdapters::ConnectionManagement.
- Make sure ConnectionManagement clears connections after each call, except in tests
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2009-02-25 12:48:53 -06:00 |
|
rick
|
1cfc39e7e7
|
update the default scope test to take the model's default scope into account
|
2009-02-25 09:27:44 -08:00 |
|
Diego Algorta
|
0dd2f96f5c
|
Fixed bug that makes named_scopes _forgot_ current scope
|
2009-02-25 09:21:08 -08:00 |
|
David Heinemeier Hansson
|
d13623ca46
|
Added ActiveRecord::Base.each and ActiveRecord::Base.find_in_batches for batch processing [DHH/Jamis Buck]
|
2009-02-23 12:11:02 +01:00 |
|
Michael Koziarski
|
06040849b5
|
Revert "Wrap calls to update_attributes in a transaction."
This caused failures on sqlite, sqlite3 and postgresql
This reverts commit fc09ebc669.
[#922 state:reopened]
|
2009-02-22 16:41:04 +13:00 |
|