0

How do I make a migration that changes an existing column so that it is an identity? Meaning, I want that integer column to automatically increment.

Is it something like:

add_identity :tablename, [:columnname]

It is not a primary key column.

Chris Travers
  • 24,138
  • 6
  • 59
  • 174
Nathan McKaskle
  • 2,736
  • 10
  • 48
  • 86

0 Answers0