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:
parent
a09659d59d
commit
89c46aaaab
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue