diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-21 19:12:04 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-21 19:12:04 -0500 |
commit | 1575d744fb45605b918f75ebb9ea67e53cb774a2 (patch) | |
tree | 3ff2eb9e0f70e49933757ec39d8c12ec762a241b /db | |
parent | e503d655859a7541141fdf93e65edd10d0340fd3 (diff) |
Add dedidcated boosts timeline list
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20200923000003_add_reblogs_flag_to_lists.rb | 8 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/20200923000003_add_reblogs_flag_to_lists.rb b/db/migrate/20200923000003_add_reblogs_flag_to_lists.rb new file mode 100644 index 000000000..bb6bcc6c2 --- /dev/null +++ b/db/migrate/20200923000003_add_reblogs_flag_to_lists.rb @@ -0,0 +1,8 @@ +class AddReblogsFlagToLists < ActiveRecord::Migration[5.2] + def change + safety_assured do + add_column :lists, :reblogs, :boolean, default: false, null: false + add_index :lists, :id, name: :lists_reblog_feeds, where: '(reblogs = TRUE)' + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 4e3114068..ab1fc6453 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2020_09_23_000002) do +ActiveRecord::Schema.define(version: 2020_09_23_000003) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -528,7 +528,9 @@ ActiveRecord::Schema.define(version: 2020_09_23_000002) do t.datetime "created_at", null: false t.datetime "updated_at", null: false t.integer "replies_policy", default: 0, null: false + t.boolean "reblogs", default: false, null: false t.index ["account_id"], name: "index_lists_on_account_id" + t.index ["id"], name: "lists_reblog_feeds", where: "(reblogs = true)" end create_table "markers", force: :cascade do |t| |