Rick Olson
|
96bc3d224d
|
Fix column type detection while loading fixtures. Closes #7987 [roderickvd]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6798 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-21 18:54:51 +00:00 |
|
Jeremy Kemper
|
a995b9cde0
|
Fix #inspect for new records. Closes #8405.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-19 01:35:19 +00:00 |
|
Jeremy Kemper
|
4d753adeaf
|
Pay tribute to timezones. Tune #inspect style.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-18 07:24:03 +00:00 |
|
Jeremy Kemper
|
e48b062eed
|
Sanitize Base#inspect. Closes #8392.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-18 02:11:43 +00:00 |
|
Michael Koziarski
|
45a79034e4
|
Ensure that the BigDecimal assertions aren't run for sqlite3, which doesn't support the precision correctly
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6756 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-18 01:14:18 +00:00 |
|
Michael Koziarski
|
ebbe4fb0d4
|
Replace the transaction {|transaction|..} semantics with a new Exception ActiveRecord::Rollback. Closes #8030 [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-18 01:02:08 +00:00 |
|
Michael Koziarski
|
a722b48000
|
Ensure copy table test runs for sqlite and sqlite3. [mislav] Cllosoes #8328
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6721 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-12 00:44:50 +00:00 |
|
David Heinemeier Hansson
|
e105e599e7
|
Sexy dumper now has its groove on (closes #8281) [Chris Wanstrath]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-11 21:26:53 +00:00 |
|
Michael Koziarski
|
e642368829
|
Use assert_match instead of String#include? so we can get helpful error messages on failure
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-06 02:03:46 +00:00 |
|
Michael Koziarski
|
0c960602fe
|
Change Base#to_xml to take the name for a container element for an association from the element name, not the first record's class name. Closes #7004
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-03 02:24:50 +00:00 |
|
David Heinemeier Hansson
|
70ac560e42
|
Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-28 15:57:29 +00:00 |
|
Michael Koziarski
|
9d08a07c48
|
Improve Performance of calling create on has_many :through associations by avoiding loading the target collection. Closes #8150 [evan]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-26 00:18:38 +00:00 |
|
David Heinemeier Hansson
|
c2f4681ab4
|
Added yielding of Builder instance for ActiveRecord::Base#to_xml calls [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-13 01:26:17 +00:00 |
|
Jeremy Kemper
|
27ba5edef1
|
Hash#to_xml supports YAML attributes; ActiveRecord::Base#to_xml support serialized attributes. Closes #7502.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-18 07:30:09 +00:00 |
|
Jeremy Kemper
|
a38f28fff1
|
Base.update_all :order and :limit options. Useful for MySQL updates that must be ordered to avoid violating unique constraints.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-17 15:48:47 +00:00 |
|
Michael Koziarski
|
f87db851c6
|
Remove deprecated object transactions. People relying on this functionality should install the object_transactions plugin at http://code.bitsweat.net/svn/object_transactions. Closes #5637 [Koz, Jeremy Kemper]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-16 22:39:01 +00:00 |
|
Michael Koziarski
|
16b4739e1e
|
Remove special cases for BigDecimal and SQLite, tests pass without them and fail with them.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-16 21:41:09 +00:00 |
|
Jeremy Kemper
|
bcff10adec
|
Fix typo in migration test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-16 08:26:45 +00:00 |
|
Jeremy Kemper
|
db69c9c12a
|
PostgreSQL: remove DateTime -> Time downcast. Bypass the DateTime migration test on 64-bit platforms since it may be a Time.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-16 08:25:37 +00:00 |
|
Jeremy Kemper
|
14cc8d2faf
|
find_or_create_by_* takes a hash so you can create with more attributes than are in the method name. Closes #7368.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-14 01:08:45 +00:00 |
|
Michael Koziarski
|
5bd116ccf4
|
Make sure with_scope takes both :select and :joins into account when setting :readonly. Allows you to save records you retrieve using finders on a has_many :through associations. [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 09:45:09 +00:00 |
|
Rick Olson
|
e3dab67c44
|
Allow a polymorphic :source for has_many :through associations. Closes #7143 [protocool]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 05:23:18 +00:00 |
|
Rick Olson
|
b7107d070a
|
forgot to add tests for #7044
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-13 05:16:22 +00:00 |
|
Jeremy Kemper
|
98165fd31e
|
Consistently quote primary key column names. Closes #7763.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6364 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-09 03:23:37 +00:00 |
|
Jeremy Kemper
|
49d1f6a813
|
Fixtures: fix YAML ordered map support. Closes #2665.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6360 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-09 02:06:50 +00:00 |
|
Jeremy Kemper
|
866cba7bb7
|
DateTimes assume the default timezone. Closes #7764.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-09 00:34:17 +00:00 |
|
Jeremy Kemper
|
7b9824f6e2
|
Oracle: overflow Time to DateTime. Closes #7718.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-06 09:39:50 +00:00 |
|
Jeremy Kemper
|
d1b08f4a75
|
Fix an edge case with dates during the Italian calendar reform! Hehe. Closes #7724.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6341 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-06 00:49:11 +00:00 |
|
Jeremy Kemper
|
0e8c3b8dd9
|
Fix has_many :through << with custom foreign keys. Closes #6466, #7153.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-05 11:34:39 +00:00 |
|
Jeremy Kemper
|
70d7b3752f
|
Test DateTime native type in migrations. References #7649.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 04:33:55 +00:00 |
|
Jeremy Kemper
|
b2c0359b3e
|
SQLServer: recognize real column type as Ruby float, correctly schema-dump tables with no indexes or descending indexes. References #7057, #7703. Closes #7333.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-03 14:20:57 +00:00 |
|
David Heinemeier Hansson
|
87b7b5b3e7
|
Added fixtures :all to test_helper.rb to assume that most people just want all their fixtures loaded all the time [DHH] Added fixtures :all as a way of loading all fixtures in the fixture directory at once (closes #7214) [manfred]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 17:31:43 +00:00 |
|
David Heinemeier Hansson
|
25bb98e42d
|
Added database connection as a yield parameter to ActiveRecord::Base.transaction so you can manually rollback [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 22:13:39 +00:00 |
|
Tobias Lütke
|
7842caed94
|
Fixed query cache when multiple database connections were involved
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 21:54:41 +00:00 |
|
Tobias Lütke
|
b5419cd66e
|
You can now use cache in instance hierachies. This allows ActiveRecord::Base.cache { } usage to cache everything
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-20 23:42:04 +00:00 |
|
Jeremy Kemper
|
5b7630e174
|
MySQL disallows TEXT defaults so don't test for them.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-11 09:17:10 +00:00 |
|
Jamis Buck
|
83752373b9
|
Made increment_counter/decrement_counter play nicely with optimistic locking, and added a more general update_counters method
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-07 16:10:40 +00:00 |
|
Tobias Lütke
|
f458b376c5
|
Introducing Model.cache { ... } for the occasional query caching needs. ( fantastic to reduce the 200 SELECT * from accounts WHERE id=1 queries in your views )
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6138 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-06 21:16:07 +00:00 |
|
Jamis Buck
|
3f4cbccb9c
|
When dealing with SQLite3, use the table_info pragma helper, so that the bindings can do some translation for when sqlite3 breaks incompatibly between point releases. Also, make current_adapter? use is_a? instead of instance_of? to account correctly for adapter subclassing.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6091 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-30 03:14:55 +00:00 |
|
Jeremy Kemper
|
d5e122002a
|
Oracle: fix lob and text default handling. Closes #7344.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6090 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-29 22:06:08 +00:00 |
|
Jeremy Kemper
|
16f6bd4070
|
SQLServer: don't choke on strings containing 'null'. Closes #7083.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 17:51:21 +00:00 |
|
Jeremy Kemper
|
269ad9711d
|
MySQL: blob and text columns may not have defaults in 5.x. Update fixtures schema for strict mode. Closes #6695.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 15:45:06 +00:00 |
|
Jeremy Kemper
|
5acea7fc9c
|
update_all can take a Hash argument. sanitize_sql splits into two methods for conditions and assignment since NULL values and delimiters are handled differently. References #6583, closes #7365.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6073 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 15:12:54 +00:00 |
|
Jeremy Kemper
|
7ce6753526
|
Post title and body not null. References #6778.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6067 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 09:11:15 +00:00 |
|
Jeremy Kemper
|
8f5c12e451
|
MySQL: SET SQL_AUTO_IS_NULL=0 so 'where id is null' doesn't select the last inserted id. Closes #6778.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 08:49:23 +00:00 |
|
Rick Olson
|
1a11bffde1
|
Don't create instance writer methods for class attributes. Closes #7401 [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6051 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 01:31:31 +00:00 |
|
Rick Olson
|
d5bd679340
|
Add missing tests ensuring callbacks work with class inheritance. Closes #7339 [sandofsky]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6026 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-24 03:04:48 +00:00 |
|
Jeremy Kemper
|
0eb8398cfa
|
Fixtures use the table name and connection from set_fixture_class. Closes #7330.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-24 01:29:49 +00:00 |
|
Jeremy Kemper
|
06afb8c746
|
Subclasses of an abstract class work with single-table inheritance. References #5704, closes #7284.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-23 04:19:16 +00:00 |
|
Michael Koziarski
|
71a4f7161f
|
Allow the Oracle adapter to insert a string "null". Closes #6997 [laurelfan]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-16 01:39:05 +00:00 |
|