Add tag relationship reason

This commit is contained in:
Kira 2019-10-06 00:59:19 -07:00
parent a2f97acfdc
commit d378887d25
2 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,6 @@
class AddTagRelReasons < ActiveRecord::Migration[6.0]
def change
add_column :tag_aliases, :reason, :text, null: false, default: ''
add_column :tag_implications, :reason, :text, null: false, default: ''
end
end

View File

@ -2121,7 +2121,8 @@ CREATE TABLE public.tag_aliases (
updated_at timestamp without time zone, updated_at timestamp without time zone,
post_count integer DEFAULT 0 NOT NULL, post_count integer DEFAULT 0 NOT NULL,
approver_id integer, approver_id integer,
forum_post_id integer forum_post_id integer,
reason text DEFAULT ''::text NOT NULL
); );
@ -2161,7 +2162,8 @@ CREATE TABLE public.tag_implications (
updated_at timestamp without time zone, updated_at timestamp without time zone,
approver_id integer, approver_id integer,
forum_post_id integer, forum_post_id integer,
descendant_names text[] DEFAULT '{}'::text[] descendant_names text[] DEFAULT '{}'::text[],
reason text DEFAULT ''::text NOT NULL
); );
@ -5325,6 +5327,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20190916204908'), ('20190916204908'),
('20190919213915'), ('20190919213915'),
('20190924233432'), ('20190924233432'),
('20191003070653'); ('20191003070653'),
('20191006073950');