Emilio Tagua
|
796ec652ad
|
Don't use regular rinder on calculations since scoping order blows
PostreSQL.
|
2009-08-14 15:59:55 -03:00 |
|
Emilio Tagua
|
48c1e6d584
|
Merge commit 'rails/master'
|
2009-08-14 12:34:38 -03:00 |
|
Emilio Tagua
|
9ac01fad19
|
Use ARel's joins when building a query for finding records with included
associations.
|
2009-08-14 12:33:05 -03:00 |
|
Joshua Peek
|
c6bc8e6626
|
Break up concerns for choosing what attributes should be serialized and the actual serializer
|
2009-08-13 22:27:36 -05:00 |
|
Emilio Tagua
|
b68ef73344
|
Merge commit 'rails/master'
|
2009-08-11 12:41:49 -03:00 |
|
Pratik Naik
|
0a558b36eb
|
Add tests for hm:t#push failures
|
2009-08-11 02:37:04 +01:00 |
|
Emilio Tagua
|
10af9fae4a
|
Merge commit 'rails/master'
|
2009-08-10 18:19:24 -03:00 |
|
Emilio Tagua
|
0e2fbd80e2
|
Merge commit 'rails/master'
Conflicts:
activerecord/lib/active_record/calculations.rb
activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
|
2009-08-10 18:07:33 -03:00 |
|
Pratik Naik
|
d0f891ae02
|
Rewrite hm:t#create tests using assert_no_difference and assert_difference
|
2009-08-10 21:30:44 +01:00 |
|
Pratik Naik
|
ad28e0037b
|
Remove unnecessary scoping for creating hm:t join record
|
2009-08-10 21:20:01 +01:00 |
|
Pratik Naik
|
50b83984f1
|
Remove unnecessary scoping and validation checks from hm:t#create
|
2009-08-10 21:06:49 +01:00 |
|
Pratik Naik
|
d9c4087a9e
|
Unify hm:t#create and create! implementation
|
2009-08-10 21:02:06 +01:00 |
|
Joshua Peek
|
f97dae5ebe
|
Extract common dirty tracking methods in AMo
|
2009-08-10 13:51:48 -05:00 |
|
Joshua Peek
|
391f978acd
|
AMo overrides alias_attribute and manages aliasing all known attribute method matchers
|
2009-08-10 11:58:44 -05:00 |
|
Arthur Zapparoli
|
55b5cf586a
|
Fixed typo in test name and CHANGELOG [#3017 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-10 16:13:18 +01:00 |
|
Emilio Tagua
|
eb3ae44cca
|
Merge commit 'rails/master'
Conflicts:
activerecord/lib/active_record/migration.rb
|
2009-08-10 10:40:11 -03:00 |
|
Cristi Balan
|
3e35ba2481
|
Add tests for scoping schema_migrations index by global table prefix and suffix
[#1543 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:59:04 -07:00 |
|
Tim Peters
|
7eaed4fefe
|
Use table prefix and suffix for schema_migrations index.
[#1543 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:56:37 -07:00 |
|
Jeff Dean
|
22f3398253
|
Introduce validates_with to encapsulate attribute validations in a class.
[#2630 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:47:56 -07:00 |
|
Leonardo Borges
|
0c391b46fb
|
PostgreSQL: XML datatype support
[#1874 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:24:54 -07:00 |
|
Jaime Bellmyer
|
9c1bac0b7f
|
raises an exception on habtm join table inserts if join table contains a primary key. Caches this check to save time on subsequent inserts.
[#2086 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:19:18 -07:00 |
|
Jaime Bellmyer
|
f0602214e0
|
raises exception (ActiveRecord::ConfigurationError with message) on habtm association creation if join table contains a primary key
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:17:39 -07:00 |
|
Morgan Schweers
|
d2d464e26e
|
Fix that creating a table whose primary key prefix type is :table_name generates an incorrectly pluralized primary key.
[#872 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 21:57:56 -07:00 |
|
Jeremy Kemper
|
47f7c936a2
|
Fix test dependency on taggings
|
2009-08-09 21:30:55 -07:00 |
|
Gabe da Silveira
|
7e3364ac46
|
Fix that counter_cache breaks with has_many :dependent => :nullify.
[#1196 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 21:18:16 -07:00 |
|
Jatinder Singh
|
5704ecffad
|
AR should respect default values for MySQL BINARY and VARBINARY columns.
[#1273 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 21:05:26 -07:00 |
|
railsbob
|
e06a0b03c8
|
has_many :through create should not raise validation errors
[#2934 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 18:44:45 -07:00 |
|
Tristan Dunn
|
a0f69722be
|
Allow ho:through#build when the owner is a new record [#1749 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-10 00:46:16 +01:00 |
|
Tristan Dunn
|
0472839d68
|
Prevent overwriting of table name in merging SQL conditions [#2949 state:resolved]
|
2009-08-10 00:41:36 +01:00 |
|
Gabe da Silveira
|
00d6c76660
|
Enable has_many :through for going through a has_one association on the join model [#2719 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-10 00:30:44 +01:00 |
|
Arthur Zapparoli
|
810b59a2a9
|
Removed duplicated tests [#3026 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-10 00:08:40 +01:00 |
|
Arthur Zapparoli
|
ce2422ceaf
|
Model#human_attribute_name now accept symbols [#3025 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2009-08-09 23:55:54 +01:00 |
|
Vladimir Meremyanin
|
08ec22054f
|
Make sure association conditions work with :include and :joins [#358 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-09 23:10:23 +01:00 |
|
Tristan Dunn
|
1af9bd58a0
|
No longer require database name for MySQL to allow cross database selects.
[#1122 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 14:35:57 -07:00 |
|
Joshua Nichols
|
0ec64bea92
|
Added back support for destroying an association's object by id. [#2306 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2009-08-09 21:46:52 +01:00 |
|
Hugo Peixoto
|
870750ed4b
|
With multiparameter date attributes, the behaviour when empty fields are present is now coherent with the one described in the date_select documentation.
[#1715 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 13:39:47 -07:00 |
|
Elise Huard
|
c5896bfd84
|
validate uniqueness with limit in utf8
[#2653 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 12:50:04 -07:00 |
|
Jeremy Kemper
|
db42f1bf67
|
Fix standalone test missing developer fixture
|
2009-08-09 11:58:07 -07:00 |
|
Hugo Peixoto
|
ff60ec469f
|
Added a uniqueness validation test that uses diacritics.
[#2883 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 11:51:58 -07:00 |
|
Matt Conway
|
1c9b3aabdd
|
Allow connect_timeout, read_timeout and write_timeout settings for MySQL [#2544 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-09 17:13:22 +01:00 |
|
railsbob
|
076ca48bd6
|
Ensure hm:t#find does not assign nil to :include [#1845 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-09 17:02:19 +01:00 |
|
Mike Breen
|
7d254b5d74
|
Serialized attributes should only be saved with partial_updates when the serialized attribute is present [#2397 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-09 16:34:53 +01:00 |
|
Dmitry Ratnikov
|
314ba0433f
|
Changed to use klass instead of constantizing in assign_ids generated method
[#260 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 02:52:06 -07:00 |
|
Dmitry Ratnikov
|
f16008afdd
|
Modified Rich Bradley's test-case to fail as part of suite and with a reasonable message
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 02:40:27 -07:00 |
|
Rich Bradley
|
9bb8ef9ede
|
Fix for nested :include with namespaced models.
[#260 state:committed]
|
2009-08-09 00:31:46 -07:00 |
|
Tristan Dunn
|
791cccaeda
|
Don't define a default primary key in the schema dumper.
[#1908 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-08 19:31:35 -07:00 |
|
Rob
|
4b7f95eb8b
|
Fix binary fixture test on Windows
[#2597 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-08 19:18:38 -07:00 |
|
Hugo Peixoto
|
d8041538dd
|
MySQL: fix diacritic uniqueness test by setting the default character set and collation to utf8/utf8_unicode_ci
[#2883 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-08 19:02:29 -07:00 |
|
Matt Duncan
|
3b3798506b
|
Adding :from scoping to ActiveRecord calculations
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1229 state:committed]
|
2009-08-09 12:43:07 +12:00 |
|
Emilio Tagua
|
9520143159
|
Merge commit 'rails/master'
Conflicts:
activerecord/test/cases/adapter_test.rb
activerecord/test/cases/method_scoping_test.rb
|
2009-08-08 19:14:35 -03:00 |
|