34fd62faf1
Use ActionPushNative's new on_load hook to configure the database connection,
following the same pattern as Active Storage and Action Text:
ActiveSupport.on_load(:action_push_native_record) do
connects_to database: { writing: :saas, reading: :saas }
end
This allows ApplicationPushDevice to inherit directly from ActionPushNative::Device
without needing an intermediate abstract class.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
445 B
YAML
18 lines
445 B
YAML
davids_iphone:
|
|
name: iPhone 15 Pro
|
|
token: abc123def456abc123def456abc123def456abc123def456abc123def456abcd
|
|
platform: apple
|
|
owner: david (User)
|
|
|
|
davids_pixel:
|
|
name: Pixel 8
|
|
token: def456abc123def456abc123def456abc123def456abc123def456abc123defg
|
|
platform: google
|
|
owner: david (User)
|
|
|
|
kevins_iphone:
|
|
name: iPhone 14
|
|
token: 789xyz789xyz789xyz789xyz789xyz789xyz789xyz789xyz789xyz789xyz7890
|
|
platform: apple
|
|
owner: kevin (User)
|