Effective Testing with RSpec 3: Running Sequel migrations fails (page 84)

Following the steps described in Chapter 6 of the book, I’m stuck with running the migration as described on page 84:

bundle exec sequel -m ./db/migrations sqlite://db/development.db --echo

this raised the following error:

Error: Sequel::DatabaseConnectionError: SQLite3::CantOpenException: unable to open database file
/Users/serguei/.rvm/gems/ruby-2.7.0/gems/sqlite3-1.4.2/lib/sqlite3/database.rb:89:in `open_v2'

What am I missing?
As you can see, I’m using

  • Ruby 2.7.0 with RVM
  • macOS

A simple Rails app using sqlite3 works without any problems.

Thank you

1 Like

My bad, created the migration file in the config folder instead of app/db.

3 Likes