thingspeak/db/migrate/20101117211209_add_index_to_feeds.rb

10 lines
160 B
Ruby
Raw Normal View History

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