From 32ccd1d7839a026dacf8cb95b3b431f4d1398cdb Mon Sep 17 00:00:00 2001 From: Joao Felipe Pimentel Date: Tue, 31 Oct 2023 14:45:20 -0300 Subject: [PATCH] Increase configuration size --- ...0231031174358_change_form_field_configuration.rb | 13 +++++++++++++ db/schema.rb | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20231031174358_change_form_field_configuration.rb diff --git a/db/migrate/20231031174358_change_form_field_configuration.rb b/db/migrate/20231031174358_change_form_field_configuration.rb new file mode 100644 index 00000000..4becf2fd --- /dev/null +++ b/db/migrate/20231031174358_change_form_field_configuration.rb @@ -0,0 +1,13 @@ +# Copyright (c) Universidade Federal Fluminense (UFF). +# This file is part of SAPOS. Please, consult the license terms in the LICENSE file. + +# frozen_string_literal: true + +class ChangeFormFieldConfiguration < ActiveRecord::Migration[7.0] + def up + change_column :form_fields, :configuration, :text + end + def down + change_column :form_fields, :configuration, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 4fa14180..0caf1e02 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2023_10_30_172415) do +ActiveRecord::Schema[7.0].define(version: 2023_10_31_174358) do create_table "accomplishments", force: :cascade do |t| t.integer "enrollment_id" t.integer "phase_id" @@ -361,7 +361,7 @@ t.string "name" t.string "description" t.string "field_type" - t.string "configuration" + t.text "configuration" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "sync"