Files
fizzy/db/migrate/20260114203313_create_action_push_native_devices.rb
T
Fernando Olivares 55336873b2 Fix database issues and add APNS configuration
- Fix owner_id type to UUID in devices migration
- Fix NOT NULL crash in device registration
- Add APNS config and 1Password integration
- Add --apns flag to bin/dev for local development
- Clean up devices controller
2026-02-25 19:31:13 +01:00

16 lines
448 B
Ruby

class CreateActionPushNativeDevices < ActiveRecord::Migration[8.0]
def change
create_table :action_push_native_devices do |t|
t.string :uuid, null: false
t.string :name
t.string :platform, null: false
t.string :token, null: false
t.belongs_to :owner, polymorphic: true, type: :uuid
t.timestamps
end
add_index :action_push_native_devices, [ :owner_type, :owner_id, :uuid ], unique: true
end
end