2020-07-20 13:35:41 +00:00
|
|
|
class Version152UpdateImpressionsTable < ActiveRecord::Migration[4.2]
|
2016-12-04 07:06:33 +00:00
|
|
|
def self.up
|
|
|
|
add_column :impressions, :params, :text
|
|
|
|
|
|
|
|
add_index :impressions, [:impressionable_type, :impressionable_id, :params], :name => "poly_params_request_index", :unique => false
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_index :impressions, [:impressionable_type, :impressionable_id, :params], :name => "poly_params_request_index"
|
|
|
|
remove_column :impressions, :params
|
|
|
|
end
|
|
|
|
end
|