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 trialphilip bae
2,556 Pointsproblem with rake db:migrate command AND cannot create post
please help. have been stuck for so long....
JSs-MacBook-Pro:hamblog jsbae$ rake db:migrate /Users/jsbae/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated /Users/jsbae/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated /Users/jsbae/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/core_ext/numeric/conversions.rb:138: warning: constant ::Fixnum is deprecated JSs-MacBook-Pro:hamblog jsbae$ rails console Running via Spring preloader in process 75194 Loading development environment (Rails 5.0.1) Cannot read termcap database; using dumb terminal settings. irb(main):001:0> Post => Post (call 'Post.connection' to establish a connection) irb(main):002:0> Post.create(title: "HELLO WORLD", body: "this is it yah")" irb(main):003:0"
1 Answer
Ethan Rivas
9,979 PointsHi, It seems that the problem is "Bignum & Fixnum are deprecated", try to change it to "Integer", can I see the migration that you're trying to migrate?.
philip bae
2,556 Pointsphilip bae
2,556 PointsHi, I actually don't know... I'm trying to follow this active record basics tutorial and I am about at 3:52 on the "quick and dirty example" video. The migration is straight after sublime is opened through the command line... sorry if this doesn't explain much, and thank you for trying to help!
Ethan Rivas
9,979 PointsEthan Rivas
9,979 Pointsphilip bae which O.S are you using?
philip bae
2,556 Pointsphilip bae
2,556 PointsMac OS Sierra