From fc8915caf3533ae273e6d31ab866fc9bf64d5328 Mon Sep 17 00:00:00 2001 From: David Roetzel Date: Mon, 1 Jul 2024 15:40:58 +0200 Subject: [PATCH] Remove ruby 3.2 feature. We still support 3.1. --- app/lib/admin/db/schema_parser.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/lib/admin/db/schema_parser.rb b/app/lib/admin/db/schema_parser.rb index 6bd08f2dd82..e61a2281eeb 100644 --- a/app/lib/admin/db/schema_parser.rb +++ b/app/lib/admin/db/schema_parser.rb @@ -1,7 +1,16 @@ # frozen_string_literal: true class Admin::Db::SchemaParser - Index = Data.define(:name, :table_name, :columns, :options) + class Index + attr_reader :name, :table_name, :columns, :options + + def initialize(name:, table_name:, columns:, options:) + @name = name + @table_name = table_name + @columns = columns + @options = options + end + end attr_reader :indexes_by_table