about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-21 13:59:38 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-21 13:59:38 -0600
commit5f92c6429fac98e5c9e3b02d158b6d4eab89945d (patch)
tree7ffa8f2d41288c88ba8720a42d747924fa371e10 /db
parent8312a6e51017498c417070cbcbf115da184b786d (diff)
add option to only apply phrase filters to timelines
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20191221195147_add_filter_timelines_only_to_user.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20191221195147_add_filter_timelines_only_to_user.rb b/db/migrate/20191221195147_add_filter_timelines_only_to_user.rb
new file mode 100644
index 000000000..ba9135273
--- /dev/null
+++ b/db/migrate/20191221195147_add_filter_timelines_only_to_user.rb
@@ -0,0 +1,5 @@
+class AddFilterTimelinesOnlyToUser < ActiveRecord::Migration[5.2]
+  def change
+    add_column :users, :filter_timelines_only, :boolean, default: false, null: false
+  end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 631469a2a..eb3b879a1 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
 #
 # It's strongly recommended that you check this file into your version control system.
 
-ActiveRecord::Schema.define(version: 2019_12_21_183232) do
+ActiveRecord::Schema.define(version: 2019_12_21_195147) do
 
   # These are extensions that must be enabled in order to support this database
   enable_extension "pg_trgm"
@@ -811,6 +811,7 @@ ActiveRecord::Schema.define(version: 2019_12_21_183232) do
     t.boolean "hide_boosts"
     t.boolean "only_known"
     t.boolean "invert_filters", default: false, null: false
+    t.boolean "filter_timelines_only", default: false, null: false
     t.index ["account_id"], name: "index_users_on_account_id"
     t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
     t.index ["created_by_application_id"], name: "index_users_on_created_by_application_id"