aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-22 20:40:27 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-22 20:40:27 +0000
commitd41ee82ebcb7ce53b6b78fec61deb632c8506e6e (patch)
tree59e98e24ad5f80665a69590235fc4ebf408c2584
parenteb107425819d5b8e15cb41c2b955096c98ccdb2c (diff)
downloadrails-d41ee82ebcb7ce53b6b78fec61deb632c8506e6e.tar.gz
rails-d41ee82ebcb7ce53b6b78fec61deb632c8506e6e.tar.bz2
rails-d41ee82ebcb7ce53b6b78fec61deb632c8506e6e.zip
Added warning about relying on habtm table aliases etc
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/CHANGELOG5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 151333bbb9..0aac9bc6c0 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -13,6 +13,11 @@
end
Post.find(1).comments.search('hi') # => SELECT * from comments WHERE post_id = 1 AND body = 'hi'
+
+ NOTICE: This patch changes the underlying SQL generated by has_and_belongs_to_many queries. If your relying on that, such as
+ by explicitly referencing the old t and j aliases, you'll need to update your code. Of course, you _shouldn't_ be relying on
+ details like that no less than you should be diving in to touch private variables. But just in case you do, consider yourself
+ noticed :)
* Added migration support for SQLite (using temporary tables to simulate ALTER TABLE) #1771 [Sam Stephenson]