tags: drop related_tags column.

This commit is contained in:
evazion
2019-09-07 22:14:40 -05:00
parent 4fc1e16731
commit 6b8515811f
3 changed files with 8 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
class DropRelatedTagsFromTags < ActiveRecord::Migration[6.0]
def change
remove_column :tags, :related_tags, :text
remove_column :tags, :related_tags_updated_at, :datetime
end
end

View File

@@ -2880,8 +2880,6 @@ CREATE TABLE public.tags (
name character varying NOT NULL,
post_count integer DEFAULT 0 NOT NULL,
category integer DEFAULT 0 NOT NULL,
related_tags text,
related_tags_updated_at timestamp without time zone,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_locked boolean DEFAULT false NOT NULL
@@ -7316,6 +7314,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20190828005453'),
('20190829052629'),
('20190829055758'),
('20190902224045');
('20190902224045'),
('20190908031103');

View File

@@ -3,8 +3,6 @@ FactoryBot.define do
name {"#{FFaker::Name.first_name.downcase}#{rand(1000)}"}
post_count {0}
category {Tag.categories.general}
related_tags {""}
related_tags_updated_at {Time.now}
factory(:artist_tag) do
category {Tag.categories.artist}