metamaps--metamaps/db/migrate/20130101215010_items_to_topics.rb
2013-01-08 00:21:54 -05:00

13 lines
312 B
Ruby

class ItemsToTopics < ActiveRecord::Migration
def change
drop_table :topics
drop_table :metacodes
rename_column :items, :item_category_id, :metacode_id
rename_column :mappings, :item_id, :topic_id
rename_table :items, :topics
rename_table :item_categories, :metacodes
end
end