aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-01-27 14:57:43 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-01-27 15:34:53 -0200
commit080bd83df9ee96845370a73d6152bbe5f231f618 (patch)
tree352a60e2ca620e6def938ca09890acd4ccf50996 /activerecord/CHANGELOG.md
parent578c94ad025cc25b04473fbce687a4991c6348ed (diff)
downloadrails-080bd83df9ee96845370a73d6152bbe5f231f618.tar.gz
rails-080bd83df9ee96845370a73d6152bbe5f231f618.tar.bz2
rails-080bd83df9ee96845370a73d6152bbe5f231f618.zip
Add `create_join_table` migration helper to create HABTM join tables
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md15
1 files changed, 13 insertions, 2 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 85ff3aaf2b..b45aba6bb1 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,7 +1,18 @@
## Rails 4.0.0 (unreleased) ##
-* The primary key is always initialized in the @attributes hash to nil (unless
- another value has been specified).
+* Added `create_join_table` migration helper to create HABTM join tables
+
+ create_join_table :products, :categories
+ # =>
+ # create_table :categories_products, :id => false do |td|
+ # td.integer :product_id, :null => false
+ # td.integer :category_id, :null => false
+ # end
+
+ *Rafael Mendonça França*
+
+* The primary key is always initialized in the @attributes hash to nil (unless
+ another value has been specified).
* In previous releases, the following would generate a single query with
an `OUTER JOIN comments`, rather than two separate queries: