From b6138a9615ffe35571d47e3f6921279b4157dbfe 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 6bd08f2dd8..e61a2281ee 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