I was attempting to deploy my application to fly.io and kept receiving SQLite3::SQLException: no such table: main.users (SQLite3::SQLException) on a build host when attempting to build the assets. There is no database obviously, however I traced this back to the
litesearch do |schema|
...
end
within my models. It seems that it's blatantly attempting to connect to the database and index things that don't exist yet.
I was attempting to deploy my application to fly.io and kept receiving
SQLite3::SQLException: no such table: main.users (SQLite3::SQLException)
on a build host when attempting to build the assets. There is no database obviously, however I traced this back to thewithin my models. It seems that it's blatantly attempting to connect to the database and index things that don't exist yet.
Also after dropping my local dev database, I get the same error when building assets, and cannot even migrate without commenting out these blocks.
Perhaps there is a cleaner way to deal with deferred indexing or simply warning on stderr that indexing will be skipped?