Skip to content

Commit 0b6f184

Browse files
inutanoclaude
andcommitted
Fix schema dump crash on FTS5 virtual tables
ActiveRecord 8.0.3's Ruby schema dumper crashes on SQLite FTS5 tables. Switch to SQL schema format so db:schema:dump uses sqlite3 directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 13875e7 commit 0b6f184

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ ENV["SKIP_APP_CONFIGURE"] = "1"
22
require 'sinatra/activerecord/rake'
33
require './app'
44

5+
# Use SQL schema format to support SQLite FTS5 virtual tables
6+
ActiveRecord.schema_format = :sql
7+
58
PROJ_ROOT = File.expand_path(__dir__)
69

710
Dir["#{PROJ_ROOT}/lib/tasks/**/*.rake"].each do |path|

0 commit comments

Comments
 (0)