From ebe6e3a7fcdd296908500ce160b483fdf57bacee Mon Sep 17 00:00:00 2001 From: Arthur Campbell Date: Tue, 7 Mar 2023 11:23:45 +0000 Subject: [PATCH] createa a migration to remove the column for the deleted question --- .../20230307111943_remove_othernational_from_sales_logs.rb | 5 +++++ db/schema.rb | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20230307111943_remove_othernational_from_sales_logs.rb diff --git a/db/migrate/20230307111943_remove_othernational_from_sales_logs.rb b/db/migrate/20230307111943_remove_othernational_from_sales_logs.rb new file mode 100644 index 000000000..534962773 --- /dev/null +++ b/db/migrate/20230307111943_remove_othernational_from_sales_logs.rb @@ -0,0 +1,5 @@ +class RemoveOthernationalFromSalesLogs < ActiveRecord::Migration[7.0] + def change + remove_column :sales_logs, :othernational, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index eccfa98ca..206e2d1c5 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -403,7 +403,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_08_101826) do t.integer "age1_known" t.string "sex1" t.integer "national" - t.string "othernational" t.integer "ethnic" t.integer "ethnic_group" t.integer "buy1livein"