How to drop a primary key using ActiveRecord migrations
- by knoopx
Due to a mistake I forgot to add :id => false to a has_many :trough table creation migration.
Now I reverted the association back to a has_and_belongs_to_many and ActiveRecord throws an exception complaining about the presence of the primary key.
I couldn't find any reference on the ActiveRecord documentation so, do you know if there is any standard, clean way of doing it?