I found a fix for this myself after some playing around.
For anyone in the course at least, the steps say after installing Devise to then add the devise views. i.e. rails g devise:views
Then to create the user model, i.e. rails g devise user
Then run the migration i.e. rake db:migrate
Those steps do not follow the devise documentation and it appears they need to be in a specific order (though I am not knowledgeable enough to know why yet).
The order should be as follows:
rails g devise user
rake db:migrate
rails g devise:views
That worked for me at least. Hope this helps someone eventually.