thingspeak/db/migrate/20101117211209_add_index_to_feeds.rb
2014-02-17 12:05:39 -05:00

10 lines
160 B
Ruby

class AddIndexToFeeds < ActiveRecord::Migration
def self.up
add_index :feeds, :device_id
end
def self.down
remove_index :feeds, :device_id
end
end