* Add: #518 コンテンツキャッシュについて、リアクションのあった投稿は削除しないオプション * Fix: 新規登録のテストが特定時刻で落ちる問題
This commit is contained in:
parent
ba776d3677
commit
f2fb829e63
15 changed files with 118 additions and 5 deletions
10
db/migrate/20240212224800_add_uri_to_favourites.rb
Normal file
10
db/migrate/20240212224800_add_uri_to_favourites.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddUriToFavourites < ActiveRecord::Migration[7.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_column :favourites, :uri, :string
|
||||
add_index :favourites, :uri, unique: true, algorithm: :concurrently
|
||||
end
|
||||
end
|
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class FixUriIndexToEmojiReactions < ActiveRecord::Migration[7.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :emoji_reactions, :uri, unique: true, algorithm: :concurrently
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_01_21_231131) do
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_02_12_230358) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
|
@ -598,6 +598,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_01_21_231131) do
|
|||
t.index ["account_id"], name: "index_emoji_reactions_on_account_id"
|
||||
t.index ["custom_emoji_id"], name: "index_emoji_reactions_on_custom_emoji_id"
|
||||
t.index ["status_id"], name: "index_emoji_reactions_on_status_id"
|
||||
t.index ["uri"], name: "index_emoji_reactions_on_uri", unique: true
|
||||
end
|
||||
|
||||
create_table "encrypted_messages", id: :bigint, default: -> { "timestamp_id('encrypted_messages'::text)" }, force: :cascade do |t|
|
||||
|
@ -619,9 +620,11 @@ ActiveRecord::Schema[7.1].define(version: 2024_01_21_231131) do
|
|||
t.datetime "updated_at", precision: nil, null: false
|
||||
t.bigint "account_id", null: false
|
||||
t.bigint "status_id", null: false
|
||||
t.string "uri"
|
||||
t.index ["account_id", "id"], name: "index_favourites_on_account_id_and_id"
|
||||
t.index ["account_id", "status_id"], name: "index_favourites_on_account_id_and_status_id", unique: true
|
||||
t.index ["status_id"], name: "index_favourites_on_status_id"
|
||||
t.index ["uri"], name: "index_favourites_on_uri", unique: true
|
||||
end
|
||||
|
||||
create_table "featured_tags", force: :cascade do |t|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue