diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-04-17 00:15:10 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:22 -0500 |
commit | 3bfa72cbce8521676f931676089169b9e105daa4 (patch) | |
tree | 2945bb90b18a15490480cc5baa7401f216e1c136 /db | |
parent | cdacbb3c4c80c32b5845d3f1492c207ac3481375 (diff) |
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.
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190417025855_add_network_to_status.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 6 insertions, 0 deletions
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" |