* changed user_id type to integer * renamed post_id to item_id * renamed post_type to item_type
11 lines
289 B
Ruby
11 lines
289 B
Ruby
class RenamePostColumnsToItem < ActiveRecord::Migration
|
|
def up
|
|
rename_column :reports, :post_id, :item_id
|
|
rename_column :reports, :post_type, :item_type
|
|
end
|
|
|
|
def down
|
|
rename_column :reports, :item_id, :post_id
|
|
rename_column :reports, :item_type, :post_type
|
|
end
|
|
end
|