Skip to content

Commit

Permalink
Fix for sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
coorasse committed Nov 26, 2024
1 parent 74ed11d commit e63b4bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/moirai/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Engine < ::Rails::Engine
I18n.original_backend = I18n.backend
table_created =
begin
ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::SQLite3Adapter) ||
ActiveRecord::Base.connection.table_exists?("moirai_translations")
rescue ActiveRecord::NoDatabaseError
false
Expand Down

0 comments on commit e63b4bd

Please sign in to comment.