mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
Fix remaining rubocop offenses
- 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>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class AddSourceToApiKeys < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :api_keys, :source, :string, default: "web"
|
||||
add_index :api_keys, [:user_id, :source]
|
||||
add_index :api_keys, [ :user_id, :source ]
|
||||
end
|
||||
end
|
||||
|
||||
@@ -12,6 +12,6 @@ class CreateMobileDevices < ActiveRecord::Migration[7.2]
|
||||
t.timestamps
|
||||
end
|
||||
add_index :mobile_devices, :device_id, unique: true
|
||||
add_index :mobile_devices, [:user_id, :device_id], unique: true
|
||||
add_index :mobile_devices, [ :user_id, :device_id ], unique: true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2,6 +2,6 @@ class AddOwnerToOauthApplications < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :oauth_applications, :owner_id, :uuid
|
||||
add_column :oauth_applications, :owner_type, :string
|
||||
add_index :oauth_applications, [:owner_id, :owner_type]
|
||||
add_index :oauth_applications, [ :owner_id, :owner_type ]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user