Answers for "In Rails, if we have a model called `Shift`, by convention Rails will assume there is a database table called `shifts`. Is there a way for us to use a different table name? *"

2

rails g model

$ rails generate model Article title:string text:text
Posted by: Guest on October-02-2020

Code answers related to "In Rails, if we have a model called `Shift`, by convention Rails will assume there is a database table called `shifts`. Is there a way for us to use a different table name? *"

Browse Popular Code Answers by Language