2013-01-01 22:45:35 +00:00
|
|
|
class ItemsToTopics < ActiveRecord::Migration
|
|
|
|
def change
|
2013-01-01 23:07:37 +00:00
|
|
|
drop_table :topics
|
|
|
|
drop_table :metacodes
|
|
|
|
|
2013-01-01 22:45:35 +00:00
|
|
|
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
|