Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialIris Avalon
14,477 Pointsrails g migration error
Hello everyone,
I'm trying to generate a migration to add a few columns to a "projects" model. I'm using the command
rails g migration add_title_and_description_to_projects title:string description:text
Though, I'm just getting an error when I run the command. It says I'm getting an error from railtie.rb saying
gems/railties-4.2.3/lib/rails/railtie.rb:210:in `instance_eval': wrong number of arguments (0 for 1..3) (ArgumentError)
I tried just generating a new migration too but I get the same error. Is there something I'm missing here?
1 Answer
Iris Avalon
14,477 PointsWell, I couldn't find any sort of solution, and I ended up having to delete the branch I was working on in git and restart. Everything seems to be working fine now. I'm not sure what the difference was, but the closest thing to a "solution" I could find was to restart.
If I find anything else out I'll be sure to post the details here in case anyone else runs into this problem.