impressionist/upgrade_migrations/version_1_1_2.rb

10 lines
322 B
Ruby
Raw Normal View History

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
end
end