Error while generating Scaffold in discourse

Hi, my goal was to create a MVC architecture to [Uploading files in Discourse] using scaffold. while running the below command, I’m getting this error…!
" rails generate scaffold Test image:string "

The current schema version is 20220413115007, but the one in the cache is 20220413131831.
invoke active_record
create db/migrate/20220418051353_create_tests.rb
create app/models/test.rb
invoke rspec
create spec/models/test_spec.rb
invoke resource_route
route resources :tests
create app/serializers/test_serializer.rb
invoke ember:model
Could not find “model.js.” in any of your source paths. Your current source paths are:

can anyone help me to sort out this error?