I need to be able to generate a model (and later a migration) by executing a Linux shell script.
The script is located directly in the app folder and looks like this:
#!/bin/bash
cd /home/<my_user_profile>/Websites/<my_app_name>
rails g model my_model name:string accepted:boolean [etc...]
The problem is: When I execute the script, the model does not get created. Any ideas why?