As a rule, you can solve any problems in the rails, as long as you know how to do it. You can create new migrations to fix old ones or roll back the database and change the initial migration. All rail generation functions also have destruction functions. If you ruin the scaffold and immediately catch it, just destroy it and do it again. For example, in rails 3:
rails generate model ModelName
can be changed to
rails destroy model ModelName
on rails <3, the syntax is ruby ββscript / generate and ruby ββscript / destroy, respectively. Google how to cancel the migration. Let the rails do the hard work for you, no need to reinvent the wheel with a third-party application.
Regarding version control, LEARN THIS. I had no idea how to use git when I started, and it saved my ass more than once I can take it. Set up your account with github, this makes learning git SUPER easier.
When you get stuck, trust stackoverflow. People here are very helpful and never blame. A great resource for beginners and professionals!
source share