Orbit/vendor/impressionist/upgrade_migrations/version_1_1_2.rb

10 lines
322 B
Ruby
Raw Normal View History

2012-05-15 14:42:49 +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
remove_index :impressions, :impressionable_type_message_index
end
end