提交 689e12b8 编写于 作者: X Xavier Noria

Revert "updated Changelog "

This reverts commit 79990505.

Conflicts:

	activerecord/CHANGELOG

Reason: Sorry, CHANGELOGs can't be edited via docrails.
上级 5d8df14d
......@@ -237,13 +237,18 @@
rails g model post user:belongs_to will generate the following:
class CreatePosts < ActiveRecord::Migration
def change
def up
create_table :posts do |t|
t.belongs_to :user
t.timestamps
end
add_index :posts, :user_id
end
def down
drop_table :posts
end
end
[Santiago Pastorino]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册