Ruby on Rails: rails generate migration is not giving me a new migration, but giving me an app called generate -
i typed terminal:
rails generate migration createaddress
and instead of creating new migration file, created entirety of naked rails app.
what wrong here?
the generate
script ruby script, should call ruby
.
also, want call script top level of app, so:
$ ruby script/generate migration createaddress
the reason have issue because executing rails
creates naked rails app in current directory first argument name. in case, that's "generate".
Comments
Post a Comment