0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【rails】$ rails g model ~ で複数形にし忘れた

Last updated at Posted at 2019-11-24

い つ も の

うっかりミスで「あ、model名を複数形にするの忘れた!」って思ってターミナル見直したら、
まさかのrailsが補完して「s」つけてくれていたという

i$ rails g model chapter

Running via Spring preloader in process 65132
      invoke  active_record
      create    db/migrate/20191124065802_create_chapters.rb
      create    app/models/chapter.rb
      invoke    test_unit
      create      test/models/chapter_test.rb
      create      test/fixtures/chapters.yml

おわりに

こんなことまで面倒見てくれてるとは知らなかったです。
rails ありがとう!!

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?