By default rails set primary key column to int(11). But we…