I then proceeded with the migration,
# rake db:migrate
== CreateHomepages: migrating ================================================
-- create_table(:homepages)
-> 0.0493s
== CreateHomepages: migrated (0.0494s) =======================================
but :
Migrations are pending; run 'bin/rake db:migrate RAILS_ENV=development' to resolve this issue answer:
You need to do
bundle exec rake test:prepare
or
bundle exec rake db:test:prepare
and then
bundle exec rake db:migrate