2012-04-03 19:23:14 +00:00
|
|
|
class Version04UpdateImpressionsTable < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
add_index :impressions, [:impressionable_type, :message, :impressionable_id], :name => "impressionable_type_message_index", :unique => false
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
2012-04-03 19:29:21 +00:00
|
|
|
remove_index :impressions, :impressionable_type_message_index
|
2012-04-03 19:23:14 +00:00
|
|
|
end
|
|
|
|
end
|