Skip to content
  • Ryuta Kamizono's avatar
    9493d455
    MySQL: Don't lose `auto_increment: true` in the `db/schema.rb` · 9493d455
    Ryuta Kamizono authored
    Currently `AUTO_INCREMENT` is implicitly used in the default primary key
    definition. But `AUTO_INCREMENT` is not only used for single column
    primary key, but also for composite primary key. In that case,
    `auto_increment: true` should be dumped explicitly in the
    `db/schema.rb`.
    
    Fixes #30894.
    9493d455
    MySQL: Don't lose `auto_increment: true` in the `db/schema.rb`
    Ryuta Kamizono authored
    Currently `AUTO_INCREMENT` is implicitly used in the default primary key
    definition. But `AUTO_INCREMENT` is not only used for single column
    primary key, but also for composite primary key. In that case,
    `auto_increment: true` should be dumped explicitly in the
    `db/schema.rb`.
    
    Fixes #30894.
Loading