I have created a demo application in rails 3.2.9 and ruby versiion 2.0.0 . After scaffolding Blog model I am trying to migrate it, but having following
rails 3.2.9
ruby versiion 2.0.0
This error occurred when not null is defined with primary key column.
Even if you defined any composite key, then those column definition does not contains the not null criteria.
Search for those column, remove the not null criteria, this is one of the solution to remove the error.