Skip to content

Handle primary keys creation during table migration #8

@bosko

Description

@bosko

When table is created and columns are added ActiveRecord automatically adds primary column to the table. This makes problems on legacy databases where, for example, primary column name is OID and table has column ID. Since ActiveRecord creates primary key according to convention column ID exists at the time we are trying to add new column and error occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions