mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-08 07:40:08 +09:00
Clarify database task repair hook scope
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Repair while DatabaseTasks still selects the database it loaded or migrated.
|
||||
# db:prepare calls these methods directly, and test tasks restore their original
|
||||
# pool before a Rake enhancement runs. This also avoids Rake's once-only invoke.
|
||||
# Repair the database selected by each schema-load or migration operation.
|
||||
# db:prepare calls DatabaseTasks directly, bypassing Rake enhancements;
|
||||
# method hooks also run on every invocation.
|
||||
module RoomMessagesCountDatabaseTasks
|
||||
def load_schema(...)
|
||||
super.tap { repair_room_messages_count }
|
||||
|
||||
Reference in New Issue
Block a user