diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-15 17:07:44 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-15 17:07:44 -0200 |
commit | 89c46aaaabc09610c440022ea625a0e05215d5ef (patch) | |
tree | 0915fa75e8bea329818172507ef604d37343d057 /activerecord | |
parent | a09659d59d6fe25a1806fdbdbe293dcff5994b5c (diff) | |
download | rails-89c46aaaabc09610c440022ea625a0e05215d5ef.tar.gz rails-89c46aaaabc09610c440022ea625a0e05215d5ef.tar.bz2 rails-89c46aaaabc09610c440022ea625a0e05215d5ef.zip |
Improve CHANGELOG entry with examples [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 00b7ff5c92..712e27d590 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -2,10 +2,20 @@ Normal DROP TABLE also works, but commits the transaction. + drop_table :temporary_table, temporary: true + *Cody Cutrer* * Add option to create tables from a query. + create_table(:long_query, temporary: true, + as: "SELECT * FROM orders INNER JOIN line_items ON order_id=orders.id") + + Generates: + + CREATE TEMPORARY TABLE long_query AS + SELECT * FROM orders INNER JOIN line_items ON order_id=orders.id + *Cody Cutrer* * `db:test:clone` and `db:test:prepare` must load Rails environment. |