metamaps--metamaps/db/migrate/20130101215010_items_to_topics.rb

11 lines
263 B
Ruby
Raw Normal View History

2013-01-08 05:13:06 +00:00
class ItemsToTopics < ActiveRecord::Migration
def change
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