55336873b2
- 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
16 lines
448 B
Ruby
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
|