I can remove the id column with a migration action like this:
remove_column :my_table, :id
How can I make this call reversible? I want to restore the :id column with its whole capabilities when a rollback is performed.
I can remove the id column with a migration action like this:
remove_column :my_table, :id
How can I make this call reversible? I want to restore the :id column with its whole capabilities when a rollback is performed.