Skip to content
代码片段 群组 项目
  • Joe Woodward's avatar
    be166074
    Match namespaced factories in Migration/EnsureFactoryForTable Cop · be166074
    Joe Woodward 创作于
    Before this change we only matched tables against their file name e.g.
    
    ```ruby
    create_table :projects_branch_rules_squash_options do
    ```
    
    Would require a factory stored in:
    
    `spec/factories/projects_branch_rules_squash_options.rb`
    
    However, we often use namespacing to retain some structure within the
    codebase. This change allows us to specify a factory in:
    
    `spec/factories/projects/branch_rules/squash_options.rb`
    未验证
    be166074
    历史
    Match namespaced factories in Migration/EnsureFactoryForTable Cop
    Joe Woodward 创作于
    Before this change we only matched tables against their file name e.g.
    
    ```ruby
    create_table :projects_branch_rules_squash_options do
    ```
    
    Would require a factory stored in:
    
    `spec/factories/projects_branch_rules_squash_options.rb`
    
    However, we often use namespacing to retain some structure within the
    codebase. This change allows us to specify a factory in:
    
    `spec/factories/projects/branch_rules/squash_options.rb`
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。
20240829143538_create_system_access_instance_microsoft_applications.rb 744 B
# frozen_string_literal: true

class CreateSystemAccessInstanceMicrosoftApplications < Gitlab::Database::Migration[2.2]
  milestone '17.5'

  def change
    create_table :system_access_instance_microsoft_applications do |t|
      t.timestamps_with_timezone null: false
      t.boolean :enabled, null: false, default: false
      t.text :tenant_xid, null: false, limit: 255
      t.text :client_xid, null: false, limit: 255
      t.text :login_endpoint, null: false, limit: 255, default: 'https://login.microsoftonline.com'
      t.text :graph_endpoint, null: false, limit: 255, default: 'https://graph.microsoft.com'
      t.binary :encrypted_client_secret, null: false
      t.binary :encrypted_client_secret_iv, null: false
    end
  end
end