When running a sequel migration I kept getting this error:
Error: NoMethodError: undefined method `compact’ for nil:NilClass

My setup looked like this:

./db/data.db
./db/migrate/001-Create_table.rb

The failing command $ sequel -m ./db/migrate/ -M 1 sqlite://db/data.db

The error in this instance was caused by having ‘-‘ in the file name of the migration. To fix this I changed to:

./db/data.db
./db/migrate/001_Create_table.rb

Some ORM active record and sequels lessons I prepared earlier.