From f8b339b3b09e90ab725b0fc849fdd46513d36517 Mon Sep 17 00:00:00 2001 From: Kira Date: Sun, 6 Oct 2019 07:34:29 -0700 Subject: [PATCH] Add reason to post versions --- db/migrate/20191006143246_add_reason_to_post_versions.rb | 5 +++++ db/structure.sql | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20191006143246_add_reason_to_post_versions.rb diff --git a/db/migrate/20191006143246_add_reason_to_post_versions.rb b/db/migrate/20191006143246_add_reason_to_post_versions.rb new file mode 100644 index 000000000..c6aa5748d --- /dev/null +++ b/db/migrate/20191006143246_add_reason_to_post_versions.rb @@ -0,0 +1,5 @@ +class AddReasonToPostVersions < ActiveRecord::Migration[6.0] + def change + add_column :post_versions, :reason, :string + end +end diff --git a/db/structure.sql b/db/structure.sql index 8c093b113..7a885cad0 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -1877,7 +1877,8 @@ CREATE TABLE public.post_versions ( source_changed boolean DEFAULT false NOT NULL, description text, description_changed boolean DEFAULT false NOT NULL, - version integer DEFAULT 1 NOT NULL + version integer DEFAULT 1 NOT NULL, + reason character varying ); @@ -5328,6 +5329,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20190919213915'), ('20190924233432'), ('20191003070653'), -('20191006073950'); +('20191006073950'), +('20191006143246');