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
|
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
|
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 |
|
Emilio Tagua
|
eb3ae44cca
|
Merge commit 'rails/master'
Conflicts:
activerecord/lib/active_record/migration.rb
|
2009-08-10 10:40:11 -03: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 |
|
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
|
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 |
|
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 |
|
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 |
|
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 |
|
Pratik Naik
|
761283ffdb
|
Ensure hm:t#create/create! throws ActiveRecord::RecordNotSaved when the owner is new
|
2009-08-08 21:51:33 +01:00 |
|
Pratik Naik
|
6464d76feb
|
DRY migration's rollback/forward methods
|
2009-08-08 20:47:14 +01:00 |
|
Cristi Balan
|
7f84f14efa
|
Add rake db:forward - opposite of db:rollback [#768 state:resolved]
Example:
rake db:forward # performs the next migration
rake db:forward STEP=4 # performs the next 4 migrations
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-08 17:41:43 +01:00 |
|
Jeremy Kemper
|
482a6f716f
|
Ruby 1.9.2: Object#id is gone now
|
2009-08-07 16:41:04 -07:00 |
|
Emilio Tagua
|
ae9e1e9f6d
|
Removed unused methods.
|
2009-08-07 17:55:36 -03:00 |
|
Emilio Tagua
|
d469ad8a49
|
Removed useless OR.
|
2009-08-07 16:41:58 -03:00 |
|
Emilio Tagua
|
6b5fab9300
|
Don't scope order in calculations.'
|
2009-08-07 14:33:35 -03:00 |
|
Emilio Tagua
|
945ef58533
|
More work on removing plain SQL from associations and use ARel instead.
|
2009-08-07 13:16:34 -03:00 |
|
José Valim
|
7034272354
|
Add destroyed? to ActiveRecord, include tests for polymorphic urls for destroyed objects and refactor mime responds tests and documentation.
|
2009-08-07 17:16:16 +02:00 |
|
Emilio Tagua
|
4e86602e11
|
Merge commit 'rails/master'
|
2009-08-06 18:57:47 -03:00 |
|
Akira Matsuda
|
230d43fbf5
|
Ruby 1.9.2 compat: Array#* uses to_str instead of to_s to join values since Ruby 1.9.2
[#2959 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-05 17:08:02 -07:00 |
|
Emilio Tagua
|
ae175a5354
|
Merge commit 'rails/master'
|
2009-08-05 14:52:07 -03:00 |
|