say, if we generated a model
rails generate model animal name:string birthday:date
and now we want to create other model to inherit from it (such as Dog and Cat), should we use rails generate model
again or just add the files ourselves? How do we specify Dog should inherit from Animal if we use rails generate model
?
I think if we use rails generate model
instead of adding the model files ourselves, there will be unit test files and fixture files created for us as well. A migration file is also added, except if it is using MongoDB, then there will be no migration file.