about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-19 20:43:53 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-19 20:48:20 -0600
commit82f98a770b088a3ffb2c165fd22ccb0adadd57a7 (patch)
treea87c075a92305ef696cedc6c255c963bf283c0ec /db
parent32d998b62333a768af3a274d265fd02483ce15de (diff)
rework hide boosts / show only packmates options to work with timeline streaming
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"