method
catch_schema_changes
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::SQLiteAdapter
catch_schema_changes()
protected
Hide source
# File activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb, line 417 def catch_schema_changes return yield rescue ActiveRecord::StatementInvalid => exception if exception.message =~ /database schema has changed/ reconnect! retry else raise end end