I'm currently following the ruby on rails tutorial: http://guides.rubyonrails.org/getting_started.html.
I am trying to save data into the database. However, when I run:
Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development
You have 1 pending migration:
SQLite3::SQLException: table "databases" already exists:
You migration may have failed midway (so it created the table, but didn't finish).
You are just using development environment, so it's okay to just drop database and rebuild it from scratch:
rake db:drop rake db:create rake db:migrate