From e03ae63acfb1c0e1de42ea980ece29206a2bbf99 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Sun, 16 Sep 2018 16:53:02 +0300 Subject: [PATCH] Remove PaperTrail columns from `prices` DB table PaperTrail's `Version` model itself has been removed in #475, so those columns are now useless --- ...20180916133911_remove_paper_trail_columns_from_prices.rb | 6 ++++++ db/structure.sql | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20180916133911_remove_paper_trail_columns_from_prices.rb diff --git a/db/migrate/20180916133911_remove_paper_trail_columns_from_prices.rb b/db/migrate/20180916133911_remove_paper_trail_columns_from_prices.rb new file mode 100644 index 000000000..a30aa939a --- /dev/null +++ b/db/migrate/20180916133911_remove_paper_trail_columns_from_prices.rb @@ -0,0 +1,6 @@ +class RemovePaperTrailColumnsFromPrices < ActiveRecord::Migration + def change + remove_column :prices, :creator_str + remove_column :prices, :updator_str + end +end diff --git a/db/structure.sql b/db/structure.sql index 912946c60..2567cbca9 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -2092,8 +2092,6 @@ CREATE TABLE public.prices ( price_cents integer NOT NULL, valid_from timestamp without time zone, valid_to timestamp without time zone, - creator_str character varying, - updator_str character varying, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, duration interval, @@ -4854,3 +4852,5 @@ INSERT INTO "schema_migrations" (version) VALUES ('20200910085157'); +INSERT INTO schema_migrations (version) VALUES ('20180916133911'); +