Add reason to post versions

This commit is contained in:
Kira 2019-10-06 07:34:29 -07:00
parent d15d783d1d
commit f8b339b3b0
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,5 @@
class AddReasonToPostVersions < ActiveRecord::Migration[6.0]
def change
add_column :post_versions, :reason, :string
end
end

View File

@ -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');