about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20191220020429_add_hide_boosts_to_users.rb5
-rw-r--r--db/migrate/20191220020441_add_only_known_to_users.rb5
-rw-r--r--db/schema.rb4
3 files changed, 13 insertions, 1 deletions
diff --git a/db/migrate/20191220020429_add_hide_boosts_to_users.rb b/db/migrate/20191220020429_add_hide_boosts_to_users.rb
new file mode 100644
index 000000000..95c1889e5
--- /dev/null
+++ b/db/migrate/20191220020429_add_hide_boosts_to_users.rb
@@ -0,0 +1,5 @@
+class AddHideBoostsToUsers < ActiveRecord::Migration[5.2]
+  def change
+    add_column :users, :hide_boosts, :boolean
+  end
+end
diff --git a/db/migrate/20191220020441_add_only_known_to_users.rb b/db/migrate/20191220020441_add_only_known_to_users.rb
new file mode 100644
index 000000000..5646b675c
--- /dev/null
+++ b/db/migrate/20191220020441_add_only_known_to_users.rb
@@ -0,0 +1,5 @@
+class AddOnlyKnownToUsers < ActiveRecord::Migration[5.2]
+  def change
+    add_column :users, :only_known, :boolean
+  end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 603203c4f..81fc11630 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_12_043419) do
+ActiveRecord::Schema.define(version: 2019_12_20_020441) do
 
   # These are extensions that must be enabled in order to support this database
   enable_extension "pg_trgm"
@@ -807,6 +807,8 @@ ActiveRecord::Schema.define(version: 2019_12_12_043419) do
     t.bigint "created_by_application_id"
     t.boolean "approved", default: true, null: false
     t.jsonb "vars", default: {}, null: false
+    t.boolean "hide_boosts"
+    t.boolean "only_known"
     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"