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.