mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Revise documentation indentation from [79990505e5
]
This commit is contained in:
parent
79990505e5
commit
74f9a4629b
1 changed files with 6 additions and 6 deletions
|
@ -237,13 +237,13 @@
|
|||
rails g model post user:belongs_to will generate the following:
|
||||
|
||||
class CreatePosts < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :posts do |t|
|
||||
t.belongs_to :user
|
||||
t.timestamps
|
||||
end
|
||||
add_index :posts, :user_id
|
||||
def change
|
||||
create_table :posts do |t|
|
||||
t.belongs_to :user
|
||||
t.timestamps
|
||||
end
|
||||
add_index :posts, :user_id
|
||||
end
|
||||
end
|
||||
|
||||
[Santiago Pastorino]
|
||||
|
|
Loading…
Reference in a new issue