about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20190428055312_add_show_self_to_lists.rb5
-rw-r--r--db/schema.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20190428055312_add_show_self_to_lists.rb b/db/migrate/20190428055312_add_show_self_to_lists.rb
new file mode 100644
index 000000000..5add9843b
--- /dev/null
+++ b/db/migrate/20190428055312_add_show_self_to_lists.rb
@@ -0,0 +1,5 @@
+class AddShowSelfToLists < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured { add_column :lists, :show_self, :boolean, default: false, null: false }
+  end
+end
diff --git a/db/schema.rb b/db/schema.rb
index e621feb46..30121e4b4 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -361,6 +361,7 @@ ActiveRecord::Schema.define(version: 2019_05_19_130537) do
     t.datetime "created_at", null: false
     t.datetime "updated_at", null: false
     t.integer "replies_policy", default: 0, null: false
+    t.boolean "show_self", default: false, null: false
     t.index ["account_id"], name: "index_lists_on_account_id"
   end