Rick Martinez
30b6d4f7f1
added test for #3732
2012-02-10 17:35:22 -05:00
Aaron Patterson
3092324ef4
Merge pull request #4956 from mhfs/pg_partial_indices
...
Add support for partial indices to PostgreSQL adapter
2012-02-10 10:23:42 -08:00
Marcelo Silveira
aaffc2acd5
improved test case for partial indices
2012-02-09 19:04:07 -02:00
Vijay Dev
e6c98b83cb
Merge branch 'master' of github.com:lifo/docrails
...
Conflicts:
activerecord/lib/active_record/relation/query_methods.rb
2012-02-09 23:44:17 +05:30
kennyj
63dc9b46b1
Fix GH #4909 . Dependency on TZInfo move from AR to AS.
2012-02-10 01:38:12 +09:00
Xavier Noria
d36a88435e
Merge pull request #4965 from raghunadhd/fix_hash
...
Refactored the OrderedHash related stuff
2012-02-09 05:07:15 -08:00
Karunakar (Ruby)
fcbe18d9b5
moving ordered hash to normal hash because ruby 1.9.3 hash defaultly ordered one
2012-02-09 18:37:20 +05:30
Raghunadh
2ee85c39bd
Refactored the OrderedHash related stuff
2012-02-09 18:27:11 +05:30
Marcelo Silveira
7ef22fce7c
Made schema dumper recognize partial indices' where statements
2012-02-09 03:28:11 -02:00
Marcelo Silveira
d70e0236df
Added where option to add_index to support postgresql partial indices
...
The `add_index` method now supports a `where` option that receives a
string with the partial index criteria.
add_index(:accounts, :code, :where => "active")
Generates
CREATE INDEX index_accounts_on_code ON accounts(code) WHERE active
2012-02-09 01:20:52 -02:00
Rafael Mendonça França
78a6b6a5fd
PostgreSQL does not work in the same way of the other adapters
2012-02-08 16:38:31 -02:00
Bogdan Gusiev
a379cb2fb5
AR::Relation#pluck: improve to work with joins
2012-02-08 16:37:27 +02:00
Jon Leighton
75ffd8701d
Fix attribute_before_type_cast for serialized attributes. Fixes #4837 .
2012-02-07 23:36:22 +00:00
Xavier Noria
d3f0f92501
no need to check for this constant
2012-02-07 21:20:35 +01:00
Markus Fenske
51c95e8499
Fixed the documenation for 'to_xml'
2012-02-07 17:25:35 +01:00
Josef Šimánek
89f2c94c22
Correcting ActiveRecord::Core#encode_with docs
2012-02-07 06:09:08 +01:00
Rohit Arondekar
80d3a0e16e
use appropriate words for docs of Model.none
2012-02-07 10:09:51 +05:30
Aaron Patterson
3e0ecde208
adding a comment for myself
2012-02-06 15:52:16 -08:00
Aaron Patterson
5dec3dd59c
delegate attribute typecasting to the column
2012-02-06 15:51:39 -08:00
Aaron Patterson
321b4c8527
pg supports real booleans, so handle the case when true
is returned
2012-02-06 15:33:36 -08:00
Rohit Arondekar
2f97eaea0e
minor tidy up of none relation query method
2012-02-06 17:20:30 +05:30
Xavier Noria
1e5cdbddfc
let automatic EXPLAIN ignore CACHE notifications
2012-02-03 16:10:39 -08:00
Sean Kirby
9ed5a1c8f1
prevents the database.yml template option from being passed to PGConn
2012-02-06 11:19:13 -05:00
Sergey Nartimov
e3b3a25abf
allow mass-assign version attribute in AR::SchemaMigration
2012-02-06 09:33:02 +03:00
Jeremy Kemper
33514a173c
Get ActiveRecord::TestCase back on its feet, despite deprecation. It requires SQLCounter which was moved to AR internal tests only.
2012-02-05 23:09:09 -07:00
Arun Agrawal
bfb84cfb3e
Verbose output for tests.
...
See #3892
2012-02-03 08:01:24 -05:00
Aaron Patterson
2abaa19e77
Merge pull request #4856 from ihid/store_null_bug
...
Allow store to be a not null column.
2012-02-02 12:07:28 -08:00
Jeremy Walker
58d10e2012
Allow store to be a not null column.
2012-02-02 18:57:15 +00:00
Aaron Patterson
203962d89e
*args is already an array. :'(
2012-02-02 10:18:26 -08:00
Rafael Mendonça França
37ce852c51
columns method doesn't have name argument
2012-02-02 16:08:31 -02:00
Aaron Patterson
55686ae5c9
removed whitespace errors 💛 💙 💜 ❤️ 💚
2012-02-02 10:01:11 -08:00
Sebastian Martinez
dcd74eb519
Remove useless argument in #columns.
2012-02-02 10:34:17 -02:00
José Valim
593fe4312f
Merge pull request #3892 from arunagw/verbose_rake_test
...
No Verbose the output for test.
2012-02-02 02:42:28 -08:00
Aaron Patterson
00e192ef1f
use the class method to (un)escape binary values
2012-02-01 17:48:28 -08:00
Jon Leighton
66fc1d6ac8
Merge pull request #4543 from jdelStrother/find_or_init
...
Don't instantiate two objects in collection proxy / find_or_instantiate_by
2012-02-01 15:15:29 -08:00
Rafael Mendonça França
9b1d54e292
Fix typo
2012-02-01 17:14:00 -02:00
Rafael Mendonça França
a73662f3d8
Use human attribute name to show the dependent destroy message
2012-02-01 17:03:15 -02:00
José Valim
403cce77f1
Merge pull request #4828 from railsaholic/fix_error_message
...
fix has_one, has_many restrict error message
2012-02-01 10:43:40 -08:00
Aaron Patterson
6da8ec14c5
Merge pull request #4806 from KL-7/do-not-serialize-nil
...
Do not serialize nil in serialized attribute.
2012-02-01 10:39:03 -08:00
Aaron Patterson
78d5d6f868
Merge pull request #4809 from cfeist/feist-sqlite-binary-corruption
...
Fix for SQLite binary data corrupter (to master branch)
2012-02-01 10:38:26 -08:00
Manoj
907d19343e
fix has_one, has_many restrict error message
2012-02-01 23:58:20 +05:30
Vijay Dev
479f3b4054
document the AR none method [ci skip]
2012-02-01 23:31:43 +05:30
Vijay Dev
5850ea0560
fix a typo [ci skip]
2012-02-01 23:31:43 +05:30
Carlos Antonio da Silva
9dccf008e1
Fix code example in ActiveRecord::Relation#none
2012-02-01 15:35:14 -02:00
Vijay Dev
d2c6400948
Merge branch 'master' of github.com:lifo/docrails
2012-02-01 22:25:52 +05:30
Arun Agrawal
1d3bc506f4
No verbose the output for tests.
2012-02-01 07:21:38 -05:00
Aaron Patterson
d613d60737
Merge pull request #4799 from arunagw/warning_fixed_for_indentations
...
warning removed: mismatched indentations
2012-01-31 17:36:23 -08:00
Chris Feist
6614668244
Fixed issue with SQLite adapter corrupting binary data
2012-01-31 13:45:00 -06:00
Chris Feist
96359d557d
Added test to illustrate bad binary blobs.
2012-01-31 13:45:00 -06:00
Aaron Patterson
c4469e6c39
Revert "Merge pull request #4746 from jenslukowski/issue4718"
...
This reverts commit 5cad7a0dba652f3e942e58087bc88ba5c5390edc, reversing
changes made to bb842e8d2111e50b21a14b8bd6d89371a4b9cd68.
2012-01-31 11:34:15 -08:00