From cf3ec71aa564c7fe47ec79f8dd5f14e3bce0b85c Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 15 Jul 2019 13:34:05 -0500 Subject: local visibility scope, chat scope+tags, unlisted tags --- db/schema.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'db/schema.rb') diff --git a/db/schema.rb b/db/schema.rb index 600837334..0cfefbf7f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -208,6 +208,17 @@ ActiveRecord::Schema.define(version: 2019_05_21_003909) do t.index ["status_id"], name: "index_bookmarks_on_status_id" end + create_table "chat_accounts", force: :cascade do |t| + t.bigint "account_id", null: false + t.bigint "tag_id", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["account_id", "tag_id"], name: "index_chat_accounts_on_account_id_and_tag_id", unique: true + t.index ["account_id"], name: "index_chat_accounts_on_account_id" + t.index ["tag_id", "account_id"], name: "index_chat_accounts_on_tag_id_and_account_id" + t.index ["tag_id"], name: "index_chat_accounts_on_tag_id" + end + create_table "conversation_mutes", force: :cascade do |t| t.bigint "conversation_id", null: false t.bigint "account_id", null: false @@ -687,8 +698,12 @@ ActiveRecord::Schema.define(version: 2019_05_21_003909) do t.datetime "updated_at", null: false t.boolean "local", default: false, null: false t.boolean "private", default: false, null: false + t.boolean "unlisted", default: false, null: false + t.boolean "chat", default: false, null: false t.index "lower((name)::text) text_pattern_ops", name: "hashtag_search_index" + t.index ["chat"], name: "index_tags_on_chat", where: "chat" t.index ["name"], name: "index_tags_on_name", unique: true + t.index ["unlisted"], name: "index_tags_on_unlisted", where: "unlisted" end create_table "tombstones", force: :cascade do |t| @@ -791,6 +806,8 @@ ActiveRecord::Schema.define(version: 2019_05_21_003909) do add_foreign_key "blocks", "accounts", name: "fk_4269e03e65", on_delete: :cascade add_foreign_key "bookmarks", "accounts", on_delete: :cascade add_foreign_key "bookmarks", "statuses", on_delete: :cascade + add_foreign_key "chat_accounts", "accounts", on_delete: :cascade + add_foreign_key "chat_accounts", "tags", on_delete: :cascade add_foreign_key "conversation_mutes", "accounts", name: "fk_225b4212bb", on_delete: :cascade add_foreign_key "conversation_mutes", "conversations", on_delete: :cascade add_foreign_key "custom_filters", "accounts", on_delete: :cascade -- cgit