mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
- Fix string literal style in doorkeeper.rb - Add missing final newlines - Remove trailing whitespace - Fix array bracket spacing in migrations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
523 B
Ruby
17 lines
523 B
Ruby
class CreateMobileDevices < ActiveRecord::Migration[7.2]
|
|
def change
|
|
create_table :mobile_devices, id: :uuid do |t|
|
|
t.references :user, null: false, foreign_key: true, type: :uuid
|
|
t.string :device_id
|
|
t.string :device_name
|
|
t.string :device_type
|
|
t.string :os_version
|
|
t.string :app_version
|
|
t.datetime :last_seen_at
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :mobile_devices, :device_id, unique: true
|
|
add_index :mobile_devices, [ :user_id, :device_id ], unique: true
|
|
end
|
|
end
|