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.
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.