thingspeak/db/migrate/20110427021659_add_indices_to_comments.rb
2014-02-17 12:05:39 -05:00

10 lines
177 B
Ruby

class AddIndicesToComments < ActiveRecord::Migration
def self.up
add_index :comments, :channel_id
end
def self.down
remove_index :comments, :channel_id
end
end