about summary refs log tree commit diff
path: root/db/migrate/20220613110628_create_custom_filter_keywords.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20220613110628_create_custom_filter_keywords.rb')
-rw-r--r--db/migrate/20220613110628_create_custom_filter_keywords.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20220613110628_create_custom_filter_keywords.rb b/db/migrate/20220613110628_create_custom_filter_keywords.rb
new file mode 100644
index 000000000..353fc334f
--- /dev/null
+++ b/db/migrate/20220613110628_create_custom_filter_keywords.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class CreateCustomFilterKeywords < ActiveRecord::Migration[6.1]
+  def change
+    create_table :custom_filter_keywords do |t|
+      t.belongs_to :custom_filter, foreign_key: { on_delete: :cascade }, null: false
+      t.text :keyword, null: false, default: ''
+      t.boolean :whole_word, null: false, default: true
+
+      t.timestamps
+    end
+  end
+end