class DropPrimaryKeyFromLocationsUsers < ActiveRecord::Migration def self.up remove_column :locations_users, :id end def self.down add_column :locations_users, :id, :integer end end