From 841f47903a1319d154e3176e035fc3d84265354b Mon Sep 17 00:00:00 2001 From: Thomas Scherz Date: Thu, 7 Mar 2024 12:32:41 -0500 Subject: [PATCH] Changes notes field to text. --- config/initializers/application_controller_renderer.rb | 1 + config/initializers/backtrace_silencers.rb | 1 + config/initializers/content_security_policy.rb | 1 + config/initializers/inflections.rb | 1 + config/initializers/mime_types.rb | 1 + .../20240307190949_software_records_change_notes_type.rb | 7 +++++++ db/schema.rb | 4 ++-- 7 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20240307190949_software_records_change_notes_type.rb diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb index f4556db3..6d56e439 100644 --- a/config/initializers/application_controller_renderer.rb +++ b/config/initializers/application_controller_renderer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb index d0f0d3b5..4b63f289 100644 --- a/config/initializers/backtrace_silencers.rb +++ b/config/initializers/backtrace_silencers.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index 497f5667..e3c96496 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Define an application-wide content security policy diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index aa7435fb..dc847422 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index 6e1d16f0..be6fedc5 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: diff --git a/db/migrate/20240307190949_software_records_change_notes_type.rb b/db/migrate/20240307190949_software_records_change_notes_type.rb new file mode 100644 index 00000000..9175f5d5 --- /dev/null +++ b/db/migrate/20240307190949_software_records_change_notes_type.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class SoftwareRecordsChangeNotesType < ActiveRecord::Migration[6.1] + def change + change_column :software_records, :notes, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 01c2efcb..d77429a1 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -12,7 +12,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20_230_606_145_207) do +ActiveRecord::Schema.define(version: 20_240_307_190_949) do create_table "change_requests", force: :cascade do |t| t.integer "software_record_id", null: false t.string "change_title" @@ -74,7 +74,7 @@ t.string "annual_fees" t.string "support_contract" t.string "current_version" - t.string "notes" + t.text "notes" t.integer "business_value" t.integer "it_quality" t.string "created_by"