Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorhilkoc <hilkoc@users.noreply.github.com>2016-08-29 21:21:53 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2016-10-26 03:48:11 +0300
commitb7791e6c9db0d202bceeb3d1c649874f9a66a5a3 (patch)
treecf2e6a75f775e570cb336361d4d842222a7e63b1 /db
parent74fff52e512e4342d6f7529927ae66eddb520792 (diff)
Add user setting for default post visibility
fixes #4319 closes #7118
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160829170244_add_post_default_to_aspects.rb6
-rw-r--r--db/schema.rb2
2 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20160829170244_add_post_default_to_aspects.rb b/db/migrate/20160829170244_add_post_default_to_aspects.rb
new file mode 100644
index 000000000..dcc2d76c6
--- /dev/null
+++ b/db/migrate/20160829170244_add_post_default_to_aspects.rb
@@ -0,0 +1,6 @@
+class AddPostDefaultToAspects < ActiveRecord::Migration
+ def change
+ add_column :aspects, :post_default, :boolean, default: true
+ add_column :users, :post_default_public, :boolean, default: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index d18815df9..48a75a864 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -48,6 +48,7 @@ ActiveRecord::Schema.define(version: 20160906225138) do
t.boolean "contacts_visible", default: true, null: false
t.integer "order_id", limit: 4
t.boolean "chat_enabled", default: false
+ t.boolean "post_default", default: true
end
add_index "aspects", ["user_id", "contacts_visible"], name: "index_aspects_on_user_id_and_contacts_visible", using: :btree
@@ -634,6 +635,7 @@ ActiveRecord::Schema.define(version: 20160906225138) do
t.datetime "exported_photos_at"
t.boolean "exporting_photos", default: false
t.string "color_theme", limit: 255
+ t.boolean "post_default_public", default: false
end
add_index "users", ["authentication_token"], name: "index_users_on_authentication_token", unique: true, using: :btree