Skip to content

Commit

Permalink
Remove PaperTrail columns from prices DB table
Browse files Browse the repository at this point in the history
PaperTrail's `Version` model itself has been removed in #475, so those
columns are now useless
  • Loading branch information
Artur Beljajev authored and yulgolem committed Sep 10, 2020
1 parent a408881 commit 5aa9498
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class RemovePaperTrailColumnsFromPrices < ActiveRecord::Migration
def change
remove_column :prices, :creator_str
remove_column :prices, :updator_str
end
end
4 changes: 2 additions & 2 deletions db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -4853,3 +4851,5 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200908131554');


INSERT INTO schema_migrations (version) VALUES ('20180916133911');

0 comments on commit 5aa9498

Please sign in to comment.