thingspeak/db/migrate/20110427021659_add_indices_to_comments.rb

10 lines
177 B
Ruby
Raw Normal View History

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