method

check_current_protected_environment!

rails latest stable - Class: ActiveRecord::Tasks::SQLiteDatabaseTasks

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

check_current_protected_environment!(db_config, migration_class)
public

No documentation available.

# File activerecord/lib/active_record/tasks/sqlite_database_tasks.rb, line 58
      def check_current_protected_environment!(db_config, migration_class)
        super
      rescue ActiveRecord::StatementInvalid => e
        case e.cause
        when SQLite3::ReadOnlyException
        else
          raise e
        end
      end