diff options
author | beatrix <beatrix.bitrot@gmail.com> | 2017-12-16 09:26:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-16 09:26:48 -0500 |
commit | e202efdf8a11a5e2fdcc029c46f972ca517f452e (patch) | |
tree | 213e59a42600c81edce0beec1f0ae9870cbdbaf5 /db | |
parent | 5325c2ab3e11652e7620f45954ef025e1ac9d833 (diff) | |
parent | 82b2e224a26765caf743b24844912faa2de9873a (diff) |
Merge pull request #253 from glitch-soc/prevent-local-only-federation
prevent federation of local-only statuses
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20171210213213_add_local_only_flag_to_statuses.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20171210213213_add_local_only_flag_to_statuses.rb b/db/migrate/20171210213213_add_local_only_flag_to_statuses.rb new file mode 100644 index 000000000..af1e29d6a --- /dev/null +++ b/db/migrate/20171210213213_add_local_only_flag_to_statuses.rb @@ -0,0 +1,5 @@ +class AddLocalOnlyFlagToStatuses < ActiveRecord::Migration[5.1] + def change + add_column :statuses, :local_only, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index cdb76aa26..9410cdab5 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -418,6 +418,7 @@ ActiveRecord::Schema.define(version: 20171212195226) do t.bigint "account_id", null: false t.bigint "application_id" t.bigint "in_reply_to_account_id" + t.boolean "local_only" t.index ["account_id", "id"], name: "index_statuses_on_account_id_id" t.index ["conversation_id"], name: "index_statuses_on_conversation_id" t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id" |