How to generate a model after running a migration on rails
rails g model Papaers --skip-migration
The --skip-migration
flag can also be used to generate a model without generating the migration file.
rails g model Papaers --migration=false
Or you can also give
rails g model Papaers
Rails generator would not overwrite if migration already exists.