I typed this into terminal:
rails generate migration CreateAddress
and instead of creating a new migration file, it created the entirety of a naked rails app.
What is wrong here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
generatescript is a Ruby script, so you should just call it withruby.Also, you usually want to call that script from the top level of your app, so:
The reason you have your issue is because executing
railssimply creates a naked Rails app in your current directory with the first argument as its name. In this case, that’s obviously “generate”.