From 56f2f5bfb4d6ad4c56c62dc01b317dfd5301ae83 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Mon, 13 Oct 2014 17:39:42 -0700 Subject: [PATCH] add nsfw boolean for tags --- migrations/047_add_nsfw_to_tags.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 migrations/047_add_nsfw_to_tags.rb diff --git a/migrations/047_add_nsfw_to_tags.rb b/migrations/047_add_nsfw_to_tags.rb new file mode 100644 index 00000000..e364cd7e --- /dev/null +++ b/migrations/047_add_nsfw_to_tags.rb @@ -0,0 +1,9 @@ +Sequel.migration do + up { + DB.add_column :tags, :is_nsfw, :boolean, default: false, index: true + } + + down { + DB.drop_column :tags, :is_nsfw + } +end \ No newline at end of file