You usually run for migration rake db:rollback. Since it was a generator, you can simply manually edit the table and delete the columns.
alter table portfolio drop column href_content_type;
alter table portfolio drop column href_file_name;
, , schema.rb, .
:
class RemoveMagazineFromBooks < ActiveRecord::Migration
def change
if column_exists? :refinery_books, :magazine
remove_column :refinery_books, :magazine
remove_index :refinery_books, :magazine if index_exists? :refinery_books, :magazine
end
end
end
, , . , , .