Aaron Patterson
0d7410faab
updating documentation
2010-11-19 10:24:16 -08:00
Aaron Patterson
96b50a0392
IrreversibleMigration is raised if we cannot invert the command
2010-11-19 10:24:15 -08:00
Aaron Patterson
b29a24bb6f
commands are reversed
2010-11-19 10:24:15 -08:00
Aaron Patterson
5d93900dc6
add and remove timestamps can be inverted
2010-11-19 10:24:15 -08:00
Aaron Patterson
24b637a80f
inverting add_index
2010-11-19 10:24:15 -08:00
Aaron Patterson
843e319f78
partial implementation of the command recorder
2010-11-19 10:24:15 -08:00
Aaron Patterson
24174d1b3a
this return value is not used, so stop returning it
2010-11-19 10:23:13 -08:00
Aaron Patterson
9280fbf795
instantiate the delegate object after initialize is defined so that our initialize method actually gets called
2010-11-19 10:14:13 -08:00
Aaron Patterson
07a74f196d
connection is set from the connection pool during migrations
2010-11-18 15:53:59 -08:00
Aaron Patterson
26923756fb
removing space errors
2010-11-18 10:01:29 -08:00
Alex Rothenberg
c5a284f8eb
Adapters can specify maximum number of ids they support in a list of expressions
...
(default is nil meaning unlimited but Oracle imposes a limit of 1000)
Limit is used to make multiple queries when preloading associated has_many or habtm records
2010-11-18 09:59:52 -08:00
Aaron Patterson
80d9b724c3
group can be done by left side only
2010-11-17 17:28:40 -08:00
Aaron Patterson
00693209ec
collapsing same table / column WHERE clauses to be OR [ #4598 state:resolved]
2010-11-17 17:10:50 -08:00
Aaron Patterson
56c5820458
use shorter form for sql literals
2010-11-17 16:15:52 -08:00
Neeraj Singh
9c1993bf6b
replace and with && as per rails coding convention
2010-11-18 07:49:45 +08:00
Neeraj Singh
f978c4b2e4
remove the rescue block by returning a not asking Base for lookup_ancestors. It was also marked for later optimization.
2010-11-17 15:44:04 -08:00
Aaron Patterson
43e2e10f4f
adding an initialize with name and version defaults
2010-11-17 15:30:09 -08:00
Aaron Patterson
4d35f8b661
updating generators
2010-11-17 14:57:54 -08:00
Aaron Patterson
c1a63c8dba
fixing more documentation
2010-11-17 14:57:54 -08:00
Aaron Patterson
d1fcba8118
fixing documentation, removing unused AS files
2010-11-17 14:57:54 -08:00
Aaron Patterson
7906e08bba
fixing indentation since these methods are not class methods
2010-11-17 14:57:54 -08:00
Aaron Patterson
606e41a4dd
these methods are no longer needed
2010-11-17 14:57:54 -08:00
Aaron Patterson
b0a6f58068
do not need these accessors
2010-11-17 14:26:35 -08:00
Aaron Patterson
68b66ef308
testing instance based migrations
2010-11-17 14:26:35 -08:00
Aaron Patterson
974ff0dd43
singleton method added is no longer needed
2010-11-17 14:26:35 -08:00
Aaron Patterson
0bea9fd6be
schema migrations work as instances
2010-11-17 14:26:34 -08:00
Aaron Patterson
8b2f801ed8
converted migrations to support instance methods
2010-11-17 14:26:34 -08:00
Carl Lerche
ccd2f3ede5
Update the version.rb files to include a PRE part
2010-11-16 17:19:46 -08:00
Aaron Patterson
08c64bbd39
super automatically passes on the implicit block
2010-11-16 14:28:19 -08:00
Aaron Patterson
05320e3788
use unless instead of if !
2010-11-16 14:28:19 -08:00
Aaron Patterson
5f608fc7c4
removing space errors
2010-11-16 14:28:19 -08:00
Aaron Patterson
c801f233df
reloading an association will properly set attributes of instantiated objects. Thanks Brian Palmer [ #5802 state:resolved]
2010-11-16 14:28:19 -08:00
Aaron Patterson
59ba800698
refactoring uniq method
2010-11-16 13:34:18 -08:00
Aaron Patterson
7ebd36d1c4
refactor to reduce method calls
2010-11-16 11:43:11 -08:00
Alexandru Catighera
a5cdf0b9eb
Fix ActiveRecord calculations when grouped by multiple fields
2010-11-16 10:38:47 -08:00
Piotr Sarnacki
437ceab139
Create directory before copying migrations if it does not exist
2010-11-16 17:00:01 +01:00
Xavier Noria
a820d0afdd
revises RDoc of AR::Base#==
2010-11-16 15:58:37 +01:00
Santiago Pastorino
4718d097ff
Models should be equals even after destroyed
...
[#5978 state:committed]
2010-11-16 12:40:40 -02:00
Aaron Patterson
ace84a003c
support finding by a ruby class [ #5979 state:resolved]
2010-11-15 20:25:43 -08:00
Aaron Patterson
dcdfc84f55
use quoted id of single AR::Base objects in predicates
2010-11-15 14:35:38 -08:00
Neeraj Singh
7c5c1a07c0
if association is already loaded and if a find operation is performed on the already loaded association list with an empty hash then do not perform another sql
...
[#5972 state:resolved]
2010-11-15 10:12:23 -08:00
Santiago Pastorino
bc556a21e2
Remove unused var
2010-11-14 15:34:07 -02:00
Jason Cheow
93c9f4a942
Fix bug where size of through association is not correct after adding a has_many association (occurs only before main object has been reloaded).
...
[#5968 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-11-14 15:32:52 -02:00
Franck Verrot
983976ec54
Finder gives a little bit more info on the lookup column (primary key)
2010-11-13 06:32:08 +08:00
Santiago Pastorino
b734e192a7
present? is better here
2010-11-11 19:00:33 -02:00
José Valim
f912a359aa
Merge remote branch 'drogus/plugin_new'
...
Conflicts:
railties/test/generators/app_generator_test.rb
2010-11-11 19:39:21 +01:00
Franck Verrot
de2933e1a0
STI type is now updated when calling AR::Base.becomes on subclasses [ #5953 state:resolved]
2010-11-12 02:17:34 +08:00
Santiago Pastorino
296e5c38f1
Use ! instead of not
2010-11-11 15:24:49 -02:00
Santiago Pastorino
894fd28859
Fixed bug in active_record/nested_attributes where an empty string id caused an ActiveRecord::RecordNotFound error. Found by [Ben Tillman]
...
[#5638 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-11-11 15:23:40 -02:00
José Valim
9c9f416d39
Allow AR Session Store to be renewed
2010-11-11 14:17:14 +01:00