Update OAuth inflection to match spec (#35160)

This commit is contained in:
Matt Jankowski 2025-06-25 03:52:30 -04:00 committed by GitHub
commit 47fda2df2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 21 additions and 19 deletions

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddSuperappToOauthApplications < ActiveRecord::Migration[5.0]
class AddSuperappToOAuthApplications < ActiveRecord::Migration[5.0]
def change
add_column :oauth_applications, :superapp, :boolean, default: false, null: false
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddWebsiteToOauthApplication < ActiveRecord::Migration[5.0]
class AddWebsiteToOAuthApplication < ActiveRecord::Migration[5.0]
def change
add_column :oauth_applications, :website, :string
end

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddLastUsedAtToOauthAccessTokens < ActiveRecord::Migration[6.1]
class AddLastUsedAtToOAuthAccessTokens < ActiveRecord::Migration[6.1]
def change
safety_assured do
change_table(:oauth_access_tokens, bulk: true) do |t|

View file

@ -2,7 +2,7 @@
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
class OptimizeNullIndexOauthAccessTokensRefreshToken < ActiveRecord::Migration[5.2]
class OptimizeNullIndexOAuthAccessTokensRefreshToken < ActiveRecord::Migration[5.2]
include Mastodon::MigrationHelpers
disable_ddl_transaction!

View file

@ -2,7 +2,7 @@
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
class OptimizeNullIndexOauthAccessTokensResourceOwnerId < ActiveRecord::Migration[5.2]
class OptimizeNullIndexOAuthAccessTokensResourceOwnerId < ActiveRecord::Migration[5.2]
include Mastodon::MigrationHelpers
disable_ddl_transaction!