aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorSammy Larbi <sam@codeodor.com>2012-12-26 13:02:28 -0600
committerSammy Larbi <sam@codeodor.com>2013-03-01 06:13:30 -0600
commit20e041579f5fe9df51bdc40048cc1ef78915e116 (patch)
treedadb0c23877b488daef2e5896c4193213a5b91a0 /activerecord/CHANGELOG.md
parentbb9f8312e7fe31566b898f87be149b13daf4dc57 (diff)
downloadrails-20e041579f5fe9df51bdc40048cc1ef78915e116.tar.gz
rails-20e041579f5fe9df51bdc40048cc1ef78915e116.tar.bz2
rails-20e041579f5fe9df51bdc40048cc1ef78915e116.zip
Support creating a table migration generator
Sometimes you want to create a table without an associated model and test, which is also not a join table. With this commit, you can now do that. Example: rails g migration create_posts title:string or rails g migration CreatePosts title:string This commit also moves the template the model generator uses for the migration to the migration templates folder, as it seems a more sensible place for it now that it is shared code.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 384ec03334..235a91fafa 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,15 @@
## Rails 4.0.0 (unreleased) ##
+* Added support for creating a table via Rails migration generator.
+ For example,
+
+ rails g migration create_books title:string content:text
+
+ will generate a migration that creates a table called books with
+ the listed attributes, without creating a model.
+
+ *Sammy Larbi*
+
* Fix bug that raises the wrong exception when the exception handled by PostgreSQL adapter
doesn't respond to `#result`.
Fixes #8617.
@@ -362,7 +372,7 @@
deprecated and removed in future versions of Rails.
*Amparo Luna + Guillermo Iguaran*
-
+
* `after_commit` and `after_rollback` now validate the `:on` option and raise an `ArgumentError`
if it is not one of `:create`, `:destroy` or `:update`
@@ -1549,4 +1559,5 @@
*Aaron Patterson*
+
Please check [3-2-stable](https://github.com/rails/rails/blob/3-2-stable/activerecord/CHANGELOG.md) for previous changes.