Can't migrate database after scaffold. Section 2.2 Ruby on Rails Tutorial Michael Hartl

Solution 1:

I just ran into this as well. This is due to ActiveRecord 4.2.0.beta4 passing a parameter to Arel::Nodes::BindParam.new. Arel 6.0.0 was just released today. In this version, BindParam does not accept any parameters in it's initalizer.

ActiveRecord has already fixed this on the master branch. Until beta5 is released you'll need to lock your Gemfile to gem 'arel', '6.0.0.beta2'.

Solution 2:

with above solution of changing gemfile.

 gem 'arel', '6.0.0.beta2'

I got below error message.

You have requested:arel = 6.0.0.beta2

The bundle currently has arel locked at 6.0.0.
Try running `bundle update arel`

After

bundle update arel    

it worked