3
3

More than 3 years have passed since last update.

【Rails】Railsコマンド一覧(備忘録)

Last updated at Posted at 2020-05-11

【Rails】Railsコマンド一覧(備忘録)

サンドバック

terminal
rails console -s

このコマンドを打ったのちに実行されるものはその後すぐにrollbackされる

ミスで作ってしまったControllerを削除するコマンド

terminal
rails destroy  controller コントローラー名 アクション名

ミスで作ってしまったModelを削除するコマンド

terminal
rails destroy  model モデル名

testの実行

terminal
rails test
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3