lib/pg_trunk/core/registry.rb
# Assign the most recent version to new records in `pg_trunk`.
Assign the most recent version to new records in `pg_trunk`.
Assign the most recent version to new records in ` pg_trunk ` .
def fill_missed_version
        <<~SQL
          UPDATE #{table_name} SET version = list.version
          FROM (
            SELECT max(version) AS version
            FROM "#{ActiveRecord::Base.schema_migrations_table_name}"
          ) list
          WHERE #{table_name}.version IS NULL;
        SQL
      end
def fill_missed_version <<~SQL 
          UPDATE  #{ table_name }  SET version = list.version
          FROM (
            SELECT max(version) AS version
            FROM " #{ ActiveRecord :: Base . schema_migrations_table_name } "
          ) list
          WHERE  #{ table_name } .version IS NULL;
         SQL end
Assign the most recent version to new records in `pg_trunk`.
Assign the most recent version to new records in ` pg_trunk ` .