about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-05 23:04:23 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commita47b1daaebea09ca07ca93079e530f26cfeef914 (patch)
tree04f08b28710732d1a9747c64537cd75162a651ca /db/migrate
parent992218f05f76106857f2cb5a72c0bb4510aa4563 (diff)
Implement scoped tags; use `local:` and `self:` scopes for community and personal tags, respectively.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20190505072439_add_private_to_tags.rb8
1 files changed, 8 insertions, 0 deletions
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