mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 21:42:08 +02:00

* common/r*: add Korean translation * Update rtv.md * Update pages.ko/common/rtv.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
24 lines
546 B
Markdown
24 lines
546 B
Markdown
# rails destroy
|
|
|
|
> Rails 리소스를 삭제.
|
|
> 더 많은 정보: <https://guides.rubyonrails.org/command_line.html#bin-rails-destroy>.
|
|
|
|
- 삭제 가능한 모든 생성기 나열:
|
|
|
|
`rails destroy`
|
|
|
|
- Post라는 이름의 모델 삭제:
|
|
|
|
`rails destroy model {{Post}}`
|
|
|
|
- Posts라는 이름의 컨트롤러 삭제:
|
|
|
|
`rails destroy controller {{Posts}}`
|
|
|
|
- Posts를 생성하는 마이그레이션 삭제:
|
|
|
|
`rails destroy migration {{CreatePosts}}`
|
|
|
|
- Post라는 이름의 모델에 대한 스캐폴드 삭제:
|
|
|
|
`rails destroy scaffold {{Post}}`
|