1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Improve CHANGELOG entry with examples [ci skip]

This commit is contained in:
Rafael Mendonça França 2013-12-15 17:07:44 -02:00
parent a09659d59d
commit 89c46aaaab

View file

@ -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.