From 3bfa72cbce8521676f931676089169b9e105daa4 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 17 Apr 2019 00:15:10 -0500 Subject: Dedicated `network` DB column for marking whether a roar is a part of the local network; rewrite posts from `FORCE_*` domains at create time instead of dynamically. --- db/migrate/20190417025855_add_network_to_status.rb | 5 +++++ db/schema.rb | 1 + 2 files changed, 6 insertions(+) create mode 100644 db/migrate/20190417025855_add_network_to_status.rb (limited to 'db') diff --git a/db/migrate/20190417025855_add_network_to_status.rb b/db/migrate/20190417025855_add_network_to_status.rb new file mode 100644 index 000000000..ddeeed41c --- /dev/null +++ b/db/migrate/20190417025855_add_network_to_status.rb @@ -0,0 +1,5 @@ +class AddNetworkToStatus < ActiveRecord::Migration[5.2] + def change + add_column :statuses, :network, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index b01b2fcf5..8ef96aac1 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -642,6 +642,7 @@ ActiveRecord::Schema.define(version: 2019_05_19_130537) do t.tsvector "tsv" t.boolean "curated" t.string "sharekey" + t.boolean "network" t.index ["account_id", "id", "visibility", "updated_at"], name: "index_statuses_20180106", order: { id: :desc } t.index ["in_reply_to_account_id"], name: "index_statuses_on_in_reply_to_account_id" t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id" -- cgit