From a47b1daaebea09ca07ca93079e530f26cfeef914 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 5 May 2019 23:04:23 -0500 Subject: Implement scoped tags; use `local:` and `self:` scopes for community and personal tags, respectively. --- db/migrate/20190505072439_add_private_to_tags.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/20190505072439_add_private_to_tags.rb (limited to 'db') diff --git a/db/migrate/20190505072439_add_private_to_tags.rb b/db/migrate/20190505072439_add_private_to_tags.rb new file mode 100644 index 000000000..b9a29fe9e --- /dev/null +++ b/db/migrate/20190505072439_add_private_to_tags.rb @@ -0,0 +1,8 @@ +class AddPrivateToTags < ActiveRecord::Migration[5.2] + def change + safety_assured { + add_column :tags, :local, :boolean, default: false, null: false + add_column :tags, :private, :boolean, default: false, null: false + } + end +end -- cgit